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 1208. Legendary Teams Contest

Can enybody help me with #9 test????????????????????????
Posted by Anastas 13 Jun 2007 14:11
Re: Can enybody help me with #9 test????????????????????????
Posted by davidsun 22 Dec 2007 10:35
I know what the problem is.
We both made a silly mistake, that we use 20 to be the length of the string, just like ch[20], and also use STRCMP to compare to strings. As you know, the string should be ended with '\0', but as the length is 20, there will not be a char '\0' at the end of the string. So, when we use STRCMP, it gets the wrong value.
Maybe it can help you.
Re: Can enybody help me with #9 test????????????????????????
Posted by tiancaihb 6 Oct 2009 09:12
Yeah... I got wa6 just because I set a maxium number of people to 25... Thanks for your hint or sth. So everyone don't treasure the memory too much!