ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Обсуждение задачи 2052. Физкультура

Why WA#10? Wrong statement?
Послано Nodir NAZAROV [TUIT-Karshi] 10 дек 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?
Послано Nodir NAZAROV [TUIT-Karshi] 10 дек 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."