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

Обсуждение задачи 1662. Пусти козла в огород 6

A problem with the problem
Послано LSBG 26 дек 2008 22:54
I have written solution that reached test 22 during the competition(I think it corresponds to 15th in offline mode) but now I have wa and i have run out of ideas. Can anyone give me a clue on this problem. Is there a problem with precision (I am making calculations with long double but use sqrt which is a bit unprecise).
Re: A problem with the problem
Послано Aman 6 апр 2017 20:40
As you can see in the sample output, precision of output is till six decimal points.
0.500000 -1.000000
Try to use long double and take care of some rounding errors. Hope it helps.
http://www.techcrashcourse.com/2015/03/c-program-to-calculate-area-of-parallelogram.html
http://www.techcrashcourse.com/2015/03/c-program-to-calculate-area-of-trapezium.html
http://www.techcrashcourse.com/2015/03/c-program-to-calculate-area-of-any-triangle.html