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

Обсуждение задачи 1541. Погоня

Mehas (PSU #1) 2<m/n<3 [4] // Задача 1541. Погоня 5 сен 2007 00:04
I got AC on this problem with normal solution, when 0<m/n<2, and with search when 2<=m/n<=3. Is there some smart solution in that case?
Mehas (PSU #1) Re: 2<m/n<3 // Задача 1541. Погоня 5 сен 2007 00:50
Hm... Now the main problem is constraint of v<100000...
Mehas (PSU #1) Re: 2<m/n<3 [2] // Задача 1541. Погоня 5 сен 2007 00:50
Hm... Now the main problem is constraint of v<100000...
Vedernikoff Sergey Re: 2<m/n<3 [1] // Задача 1541. Погоня 5 сен 2007 01:06
My brute-force solution process any test with constraint v < 5000. So, in you algo you can also assume that v <= 5000. Amazingly, but this will speed up your algo dramatically...
Denis Koshman Re: 2<m/n<3 // Задача 1541. Погоня 15 июл 2008 02:18
In case of my algo decreasing the limit slows things down (fair AC w/o tables as it meets TL for every pair or M/N)