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

Ich(USU) It seems that test #13 is incorrect [2] // Problem 1284. Space Poker 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.
Vladimir Yakovlev (USU) Some tests were corrected. You have AC now (-) [1] // Problem 1284. Space Poker 26 Aug 2005 09:47
Thank you :)