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

Обсуждение задачи 1332. Джинн-бомбардировки

Matov Dmitry How solve this problem with N <= 1000? [6] // Задача 1332. Джинн-бомбардировки 19 июн 2006 11:43
Does anybody know an algorithm with lower than O(N^3) complexity?
I've already read this subject. And I can't imagine where did you find there the algorithm with lower than N^3 complexity.
O(N^2logN)

Fix one point on the circle. This point becomes the begin of coordinates.
For each other point calculate interval of angles were center can be.
Now that you have intervals on the circle and you have to find
point which is covered by maximum number of intervals.
Thank you a lot. I got AC.