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

Обсуждение задачи 1632. Лазеры

Give me please any hints how to output the answer "with the maximal possible accuracy".
Послано Al.Cash 8 фев 2009 15:45
Re: Give me please any hints how to output the answer "with the maximal possible accuracy".
Послано Vedernikoff Sergey (HSE: EconomicsForever!) 8 фев 2009 16:51
Just many digits after decimal point. But here 8 digits gave me AC, but you may output, for example, 12-14.

Edited by author 08.02.2009 16:51
Re: Give me please any hints how to output the answer "with the maximal possible accuracy".
Послано Al.Cash 8 фев 2009 17:54
Do you store the answer in double?
Re: Give me please any hints how to output the answer "with the maximal possible accuracy".
Послано Vedernikoff Sergey (HSE: EconomicsForever!) 8 фев 2009 21:24
Yes, tests for this problem are weak, so double is more than enough
Re: Give me please any hints how to output the answer "with the maximal possible accuracy".
Послано Al.Cash 9 фев 2009 00:45
Thank you for information! I had WA on the contest, but now I'll try to solve this problem more accurate.
Re: Give me please any hints how to output the answer "with the maximal possible accuracy".
Послано Vedernikoff Sergey (HSE: EconomicsForever!) 9 фев 2009 04:01
Yes, during the contest I also thought the problem was in tricky tests. But after fixing minor bugs program got AC immediately...