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

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

Re: 10301 - Rings and Glue

Post by Jehad Uddin » Fri Oct 30, 2009 2:40 am

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

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
Location: SUST,SYLHET,BANGLADESH.
Contact:

Re: 10301 - Rings and Glue

Post by calicratis19 » Mon Nov 02, 2009 11:59 am

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.
Heal The World

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

Re: 10301 - Rings and Glue

Post by Jehad Uddin » Mon Nov 02, 2009 3:03 pm

Thanks calicratis19 vai,thanks a lot, :D ,silly mistake of uva, :lol: :lol:

calicratis19
Learning poster
Posts: 76
Joined: Mon Jul 21, 2008 8:50 am
Location: SUST,SYLHET,BANGLADESH.
Contact:

Re: 10301 - Rings and Glue

Post by calicratis19 » Tue Nov 03, 2009 8:46 am

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

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

Re: 10301 - Rings and Glue

Post by Jehad Uddin » Thu Nov 05, 2009 7:12 pm

Thnaku, i m very poor in english, :D

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

Re: 10301 - Rings and Glue

Post by dibery » Sun May 10, 2015 12:50 pm

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.

Post Reply

Return to “Volume 103 (10300-10399)”