WOW!!!!!!!!!!!! You know magic!
I changed float to double & initialized sum = 0 & got AC!!!! :D :D :D :D :D Don't know how to thank you!
& I had tried each and every given test case in this forum. My code gave me the correct outputs for them. So I totally had no idea why I was getting WA.. But ...
Search found 5 matches
- Thu Mar 14, 2013 11:42 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10034 - Freckles
- Replies: 101
- Views: 49084
- Thu Mar 14, 2013 3:50 am
- Forum: Volume 100 (10000-10099)
- Topic: 10034 - Freckles
- Replies: 101
- Views: 49084
Re: 10034 - Freckles
Why wa? I used Kruskal's Mst algo.. I think its presentation error..
Here is my code:
Here is my code:
Code: Select all
AC.
While(1) Return Thanks.. :) ;
- Tue Mar 12, 2013 10:46 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10308 - Roads in the North
- Replies: 30
- Views: 13391
Re: 10308 - Roads in the North
Yes!!!! Got AC!
I just changed (!EOF) to (cin.peek()!=EOF)
And thanks. I have now understood my fault.. This is really the way to learn!!! !

From now, i'll be patient thinking that i am actually learning!!
I just changed (!EOF) to (cin.peek()!=EOF)

And thanks. I have now understood my fault.. This is really the way to learn!!! !



From now, i'll be patient thinking that i am actually learning!!

- Tue Mar 12, 2013 6:17 am
- Forum: Volume 103 (10300-10399)
- Topic: 10308 - Roads in the North
- Replies: 30
- Views: 13391
- Tue Mar 12, 2013 12:36 am
- Forum: Volume 109 (10900-10999)
- Topic: 10959 - The Party, Part I
- Replies: 37
- Views: 22498
Re: 10959 - The Party, Part I








i think my fault is in presentation.. I used BFS... Plz help me...




Code: Select all
Got AC!!! Yaeeeeeee!!
While(1) Return Thanks! :D