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 1644. A Whole Lot of Walnuts

In my opinion there is problem in tests.Because
Posted by Qafqaz_Ferhad Cebiyev 7 Jul 2010 19:06
char x[100] -- is Wa
while char x[101] -- is AC
Re: In my opinion there is problem in tests.Because
Posted by UNKNOWN_LAMER 7 Jul 2010 20:45
If you think that n > 100 in some tests, you can write in your program:

if (n > 100) for(;;);

If some test is incorrect you will get "Time limit exceeded" on this test.

But in all tests in this problem n <= 100. So there is a problem in your program, not in tests.
Re: In my opinion there is problem in tests.Because
Posted by Nguyen Khac Tung 7 Aug 2011 09:45
c/c++ array size is kind of not stable. For string-related problem, i prefer pascal
Re: In my opinion there is problem in tests.Because
Posted by ONU_1785 20 Jan 2012 00:28
A C-string uses 1 additional symbol (with number 0) as the end of line. So u have to create an array with 100+1=101 symbol.