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 1284. Space Poker

It seems that test #13 is incorrect
Posted by Ich(USU) 24 Aug 2005 10:46
In my program there is such a fragment:

Cs:array[1..10][1..100]of byte;
...

read(n); fillchar(Cs,sizeof(Cs),0);
for i:=1 to n do begin
  read(k,l); if Cs[l,k]>0 then MakeCrash; Cs[l,k]:=i;
end;
...

where MakeCrash is procedure which makes some crash(MLE,divide by zero...)

And this program got CRASH on test #13. When i'v deleted MakeCrash ,it got WA#18.
It may happens only if there is the same cards in input, but it is impossible due to the problem.
Some tests were corrected. You have AC now (-)
Posted by Vladimir Yakovlev (USU) 26 Aug 2005 09:47
Re: Some tests were corrected. You have AC now (-)
Posted by Ich(USU) 30 Aug 2005 13:57
Thank you :)