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

Обсуждение задачи 1588. Ямайка

SerailHydra Why WA at # test 8? [4] // Задача 1588. Ямайка 27 окт 2007 15:08
CHIDEMYAN SERGEY Re: Why WA at # test 8? [3] // Задача 1588. Ямайка 27 окт 2007 17:47
I've WA#8 too.Interesting, what test is it?Thank!!!

Edited by author 27.10.2007 17:54
Irka(Ulyanovsk) irina-kruglova@yandex.ru Re: Why WA at # test 8? [2] // Задача 1588. Ямайка 27 сен 2008 23:08
And I had WA too; because of stupid mistakes.
This tests helped me to figure them out:
5
0 0
0 2
1 1
2 0
2 2

9
0 0
0 10
0 20
10 0
10 10
10 20
20 0
20 10
20 20
Pavel Re: Why WA at # test 8? [1] // Задача 1588. Ямайка 2 янв 2022 15:20
The thing is that if you order edges by an angle (atan) and length and do binsearch it's still possible that there will be edges with an appropriate angle, bigger length but not the one you are looking for, so binsearch in this case will give you a wrong result, so try to find a way to order them
Pavel Re: Why WA at # test 8? // Задача 1588. Ямайка 2 янв 2022 15:26
simple test is
6
0 0
10 0
10 10
10 20
0 10
0 20

and the answer is 171