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 1589. Sokoban

admins : Test 3 is incorrect
Posted by Sasha Bar [TNU] 11 Jan 2009 16:03
char em[10][20];
int n = 0, m = 0;
...
while (gets(em[n++]) && em[n-1][0]);
--n;
m = (int) strlen(em[0]);
...

this code doesn't pass test 3 and gets WA, but if i insert this line
if (m != strlen(em[1])) while(true);
it gets Time Limit Exceeded !!! check it

Edited by author 16.01.2009 23:18
Re: admins : Test 3 is incorrect
Posted by Vladimir Yakovlev (USU) 26 Jul 2009 21:07
Lengths of lines may differ, because the spaces at the end of lines are omitted.