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 2052. Physical Education

Why WA#10? Wrong statement?
Posted by Nodir NAZAROV [TUIT-Karshi] 10 Dec 2015 02:43
I guess input for test #10 is larger than 9.

According to my understanding of problem statement, output is always 1 or 2 or 3. The algorithm is pretty straightforward: if all the digits of input except first one, is 9 then print 3. If one among them is 8 and remaining is 9 then print 2, otherwise 1.

Any thoughts?
Re: Why WA#10? Wrong statement?
Posted by Nodir NAZAROV [TUIT-Karshi] 10 Dec 2015 02:46
I thought Vasya has to stay in his place, maybe that's where it confused me. But now I read statement again and it says "But Vasya found it very boring as he was the first in the line and didn’t have to change his place."