Search found 4 matches

by s0mbra
Wed Jan 14, 2015 7:46 pm
Forum: Volume 100 (10000-10099)
Topic: 10044 - Erdos Numbers
Replies: 102
Views: 40689

Re: 10044 - Erdos Numbers

Always print a newline char at the end of the last line.
I was doing that but still getting WAs.
by s0mbra
Tue Jan 13, 2015 3:17 am
Forum: Volume 100 (10000-10099)
Topic: 10044 - Erdos Numbers
Replies: 102
Views: 40689

Re: 10044 - Erdos Numbers

Can someone help me with this problem? I'm pretty sure that the problem is in the parsing. I've already spent a thousand hours searching for errors, testing every critical input here (and getting identical answers) but the judge still gives me WA. :-? In the parsing I skip every extra space to get t...
by s0mbra
Sun Dec 21, 2014 12:19 am
Forum: Volume 100 (10000-10099)
Topic: 10041 - Vito's Family
Replies: 90
Views: 30887

Re: 10041 - Vito's Family

Hum... Be careful! When I was solving this problem I just ignored equal numbers, so if the informed list were something like: {1, 3, 3, 10, 5, 2, 5} I would only store this ordered set: {1, 2, 5, 3, 10} And then calculate its median. This leads to a wrong answer according to the judge. In order to g...
by s0mbra
Thu Dec 11, 2014 9:33 pm
Forum: Volume 102 (10200-10299)
Topic: 10258 - Contest Scoreboard
Replies: 87
Views: 35466

Re: 10258 - Contest Scoreboard

I'd like to warn the ones who are getting WA that the last case must not print an blank line. I was getting WA, besides getting correct answers for the tests posted here, until i removed the comand to print this last blank line.

Go to advanced search