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 1287. Mars Canals

Test #4 is incorrect!
Posted by Vlad Veselov 10 Apr 2004 16:03
I think that following two input routines are the same:
#1, gets AC
-------------------------
ReadLn(N);
For I := 1 To N Do
 begin
  For J := 1 To N Do
   begin
    Read(Ch);
    <work>
   end;
  ReadLn;
 end;
----------------------
#2, gets WA on test 4
----------------------
Read(N);
Read(Ch);
For I := 1 To N Do
 For J := 1 To N Do
  begin
   While Not((Ch = 's')Or(Ch = 'S')) Do Read(Ch);
   <work>
   Read(Ch);
  end;
-----------------------------
Where am I mistake?
Re: Test #4 is incorrect!
Posted by LeXuS[Alex Kalugin] 11 Apr 2004 17:21
in windows - end of string is a 2 symbols: ord (ch)=13 and
ord (ch)=10
Re: Test #4 is incorrect!
Posted by LeXuS[Alex Kalugin] 11 Apr 2004 23:28
Please send me our sourse code.
J get WA on test#4 :~))
Re: Test #4 is incorrect!
Posted by Gheorghe Stefan 12 Apr 2004 15:06
I got accepted with simple algorithm.
There is no incorrect tests.
My thoughts
Posted by Vlad Veselov 13 Apr 2004 19:43
to Gheorghe Stefan:I didn't say that it's impossible to get AC. I got it too.
I ask you are input routines the same. I think they are. Profound parts of this two programs are the same too, so why don't they give the same result?
to JUDGES: can you give any comments?
Re: Test #4 is incorrect!
Posted by Vladimir Yakovlev (USU) 18 Oct 2004 01:15
Tests were corrected.
Problem was rejudged.

Thank you.