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

Обсуждение задачи 1640. Кольцо холода

If restrictions on the radius were lower, what would be a good algorithm for the problem?
Послано Jihan Yin 7 ноя 2014 10:55
I originally read the problem statement as stating that the radius could only be up to 1000 in length. Hence, I was really confused when everyone was saying the problem was really easy. But that nightmare is behind me now.

I never figured out how to do it with that kind of restriction of the radius in under 1 second. What would be the optimal algorithm to use for that case?
Re: If restrictions on the radius were lower, what would be a good algorithm for the problem?
Послано Mahilewets 31 май 2017 01:34
I used the following thing :
(1) calculate median_X=sum(X[i] )/n,  do the same for Y.  (2) Teleport and find max distance from demon to Sandro.