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

Обсуждение задачи 1004. Экскурсия

i am puzzled!
Послано daizi sheng(from USTC) 27 июл 2002 16:50
if the rods are too ways
why the sample give an example saying that
it is different between (1,3) and (3,1)
I KNOW IT
Послано daizi sheng(from USTC) 28 июл 2002 13:33
> if the rods are too ways
> why the sample give an example saying that
> it is different between (1,3) and (3,1)
I'll tell you
Послано Vladimir Milenov Vasilev 28 июл 2002 17:15
The author has tried to make the problem harder...if there are more
than one way between two towns, you have just to take the shorter
one... Althoug, the testing program of this problem is wrong, for
example if you always write "No solution\n" when no cicle found
and "350000\n" otherwise, you'll get accepted. :)
Re: I'll tell you
Послано Paul - Dan Baltescu 7 авг 2006 16:01
I don't understand.

If the length of the roads is less than 500 and the answer may contain at most 100 towns, how can the answer be 350000?

100*500=50000 < 350000
Re: I'll tell you
Послано Burunduk1 7 авг 2006 19:33
Of course, it's impossible. Answer <= 50000.