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

Обсуждение задачи 1111. Квадраты

If you WA 8, change epsilon
Послано Liu Strong 2 апр 2008 15:21
To those who WA 8:
Try to change your epsilon to something else then 1e-14.
I changed that to 1e-8 and then I got AC.

Also, don't calculate S△ABC as 0.5*AB*AC! It should be 0.5*AB*AC*sin∠A
Re: If you WA 8, change epsilon
Послано DWED 5 авг 2008 12:02
As I see - your advice is to use greater epsilon. May be it is better to avoid dangerous computations?

I've solved this problem in integers - so all comparations were EXACT =)

So, I think, the note about precision in problem text is superfluous.
Re: If you WA 8, change epsilon
Послано Marin Shalamanov 1 фев 2013 20:50
How did you solved it? My first solution was with integers but than i noticed not all squares are axes aligned. :( Anyway, could you send me you solution? My email is  marshal at mail.bg. Thank you!
Re: If you WA 8, change epsilon
Послано Staelth 3 авг 2013 11:53
I got AC without epsilon;)