Page 4 of 4

Re: 10301 - Rings and Glue

Posted: Fri Oct 30, 2009 2:40 am
by Jehad Uddin
hello everyone ,i m getting wa in this prob,pls help me, :roll: :oops:

Code: Select all

code deleted after acc....

Re: 10301 - Rings and Glue

Posted: Mon Nov 02, 2009 11:59 am
by calicratis19
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 :wink: :wink:
hope it helps.

Re: 10301 - Rings and Glue

Posted: Mon Nov 02, 2009 3:03 pm
by Jehad Uddin
Thanks calicratis19 vai,thanks a lot, :D ,silly mistake of uva, :lol: :lol:

Re: 10301 - Rings and Glue

Posted: Tue Nov 03, 2009 8:46 am
by calicratis19
zero is considered as a plural number in english language :wink:

Re: 10301 - Rings and Glue

Posted: Thu Nov 05, 2009 7:12 pm
by Jehad Uddin
Thnaku, i m very poor in english, :D

Re: 10301 - Rings and Glue

Posted: Sun May 10, 2015 12:50 pm
by dibery
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.