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

Обсуждение задачи 1085. Встреча

Time Limit on test #16
Послано penartur 12 окт 2008 04:12
Anybody knows what in this test?
I've optimized my algorithm after first time limit and now it runs really very fast; on my example file with 100 trains, 100 stations and 100 friends it takes only 145 milliseconds to calculate the answer - even in debug build.
I just cannot imagine why it could calculate answer on some test for more than 2 seconds...
UPD: 129ms in release build...

Edited by author 12.10.2008 04:15
Re: Time Limit on test #16
Послано penartur 12 окт 2008 23:36
btw, i have changed DFS to BFS in my code (i had to define abstract tasks processor and implement stack and queue processor), and, although on my large tests it takes equal time independent of the engine used (stack or queue), stack engine have failed one more time on test #16 and queue engine have passed it.