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 1343. Fairy Tale

??!?!??!!?? (-)
Posted by Alexander Kouprin 23 Mar 2007 03:12
I got WA#10 on this:

readln(n);
readln(z);
for i:=1 to 12-n do
z:=z*10;
repeat
test;
z:=z+1;
until false;
end.


AND WHAT? I got AC on this:

read(n);
read(z);
for i:=1 to 12-n do
z:=z*10;
repeat
test;
z:=z+1;
until false;
end.

BUT!
"В первой строке находится число уже ушедших Месяцев. Во второй — названные ими числа."
So, in test 10 all numbers placed in first line?
Or what?..

It's ANFAIR! ;)
Re: ??!?!??!!?? (-)
Posted by bsu.mmf.team 18 Oct 2008 18:14
In Test #10 n=0 - that's why your programme returns WA