ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1837. Isenbaev's Number

WA #17
Posted by Pastafarianist 11 Nov 2011 03:26
Any suggestions please?
I'm a complete newbie at graph theory, so I guess this is something really stupid.
Re: WA #17
Posted by Pastafarianist 11 Nov 2011 20:27
Solved it.
It wasn't actually a WA but a RT. The point is, #17 seems to contain 300 names with no Isenbaev. Thus, if you always give some fixed ID (say, zero) while giving other people other IDs, you will have an "index out of bounds" exception. My program caught that exception, printed stack trace (as you might have already guessed, my program is in Java) and exited with exit code 9000. Since stack trace is printed in stdout, Timus's checking system couldn't parse that output which resulted in WA.
Re: WA #17
Posted by Pastafarianist 12 Nov 2011 11:54
*if you always give HIM some fixed ID, of course
Re: WA #17
Posted by Yuxin Qin 29 Sep 2012 09:29
Thank you very much.I got AC.>-<
Re: WA #17
Posted by [TDUweAI] daminus 25 Jun 2013 19:19
because, array need more than 300!!