## 10301 - Rings and Glue

All about problems in Volume 103. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Learning poster
Posts: 74
Joined: Fri May 08, 2009 5:16 pm

### Re: 10301 - Rings and Glue

hello everyone ,i m getting wa in this prob,pls help me,

Code: Select all

``````code deleted after acc....
``````
Last edited by Jehad Uddin on Mon Nov 02, 2009 3:04 pm, edited 1 time in total.

calicratis19
Learning poster
Posts: 76
Joined: Mon Jul 21, 2008 8:50 am
Contact:

### Re: 10301 - Rings and Glue

change

Code: Select all

``````if(mx<2) cout<<"The largest component contains "<<mx<<" ring."<<endl;
else cout<<"The largest component contains "<<mx<<" rings."<<endl;``````
to this

Code: Select all

``````if(mx==1) cout<<"The largest component contains "<<mx<<" ring."<<endl;
else cout<<"The largest component contains "<<mx<<" rings."<<endl;``````
this hint is told in a previous post .may be you should have looked harder before post
hope it helps.
Heal The World

Learning poster
Posts: 74
Joined: Fri May 08, 2009 5:16 pm

### Re: 10301 - Rings and Glue

Thanks calicratis19 vai,thanks a lot, ,silly mistake of uva,

calicratis19
Learning poster
Posts: 76
Joined: Mon Jul 21, 2008 8:50 am
Contact:

### Re: 10301 - Rings and Glue

zero is considered as a plural number in english language
Heal The World

Learning poster
Posts: 74
Joined: Fri May 08, 2009 5:16 pm

### Re: 10301 - Rings and Glue

Thnaku, i m very poor in english,

dibery
Learning poster
Posts: 76
Joined: Sat Feb 23, 2013 4:16 pm
Location: Taiwan, Taipei
Contact:

### Re: 10301 - Rings and Glue

Just one little thing.
I got accepted using fabs(), while abs() gives me a wrong answer.
It would be great if someone can tell me the difference between them.
I passed a double parameter to abs() and fabs(), and I think both of them should return the same result.
Life shouldn't be null.