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

Обсуждение задачи 1205. На метро или пешком?

Is the input wrong ???
Послано Viorel Canja 16 мар 2002 21:39
My program crashed . I changed the code that checked for end of
underground connections to check if only one ( instead of both ) of
the numbers is 0 and I got AC.

How can this happen ?
The problem clearly states that the underground connections end with
a PAIR of zeros.
Re: Is the input wrong ???
Послано sssa88 16 мар 2002 21:43
probably they expect that nobody would check both zeroes
hmmm ,this is a little unfair . . .
Послано MadPsyentist/Sam 16 мар 2002 22:20
> probably they expect that nobody would check both zeroes
Re: Is the input wrong ???
Послано Alexander 16 мар 2002 22:30
> My program crashed . I changed the code that checked for end of
> underground connections to check if only one ( instead of both )
of
> the numbers is 0 and I got AC.
>
> How can this happen ?
> The problem clearly states that the underground connections end
with
> a PAIR of zeros.

I understand why some programs crash when they don't find 2 zeros,
but I don't understand why my program with the same bug works 0.951
sec, and gets WA!!!