|
|
back to boardIn my opinion there is problem in tests.Because char x[100] -- is Wa while char x[101] -- is AC Re: In my opinion there is problem in tests.Because 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 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 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. |
|
|