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

Общий форум

1028: unexpected TLE
Послано Dmitry S. Lyubshin 14 окт 2000 13:20
Anybody who has 1028 accepted, leave a note please. I have
an N*log(N) algorithm that must FLY into the time limit for
N<30000, but it doesn't. It passes all tests from the Ural
championship easily.
Re: 1028: unexpected TLE
Послано ManWithoutFace (USU) 14 окт 2000 15:14
> Anybody who has 1028 accepted, leave a note please. I have
> an N*log(N) algorithm that must FLY into the time limit
for
> N<30000, but it doesn't. It passes all tests from the Ural
> championship easily.

IMO self-balancing binary tree would be very good here.
Re: 1028: unexpected TLE
Послано Ilievski Bozidar 14 окт 2000 16:11
> Anybody who has 1028 accepted, leave a note please. I have
> an N*log(N) algorithm that must FLY into the time limit
for
> N<30000, but it doesn't. It passes all tests from the Ural
> championship easily.

Just use the fact that input is in increasing
order of y and x.
Re: 1028: unexpected TLE
Послано Petko Minkov 14 окт 2000 23:52
> Anybody who has 1028 accepted, leave a note please. I have
> an N*log(N) algorithm that must FLY into the time limit
for
> N<30000, but it doesn't. It passes all tests from the Ural
> championship easily.

I got O(N^2) really nice and simple algorithm which
really flies like a bird! :). It got 0.1 second
before the time limit :)