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

Обсуждение задачи 1154. Сражение магов

Gheorghe Stefan What is with the damn 10 test? [4] // Задача 1154. Сражение магов 24 авг 2004 23:14
I got WA at test 10... I compared my source with an AC one and got same results on many tests...
Gheorghe Stefan Re: What is with the damn 10 test? [3] // Задача 1154. Сражение магов 24 авг 2004 23:22
oh God
I've wrote if (H == 13) H = M = S = 0 and got AC !
mkd Re: What is with the damn 10 test? [2] // Задача 1154. Сражение магов 10 апр 2005 18:23
In test 10 you may have a precision problem. When comparing double values use some epsilon like 1e-9. It worked for me at least...
Denis Koshman Re: What is with the damn 10 test? [1] // Задача 1154. Сражение магов 11 авг 2008 08:56
I rewrote everything to long arithmetics and fair fractions, still WA10. The problem is that the answer is 00:00:00. I checked only control points (moments of power and weakness for all 4 forces), but if resulting function is minimal and constant on range [x2;24*60*60) U [0;x1), then the answer should be 0. Simply adding 0 to list of points to check gave me AC. I believe solution with 'double' type would also do it :)

Edited by author 11.08.2008 08:58
Sandello Re: What is with the damn 10 test? // Задача 1154. Сражение магов 3 фев 2010 01:26
Oh, thank you very much! I added zero to my check list and at last i have AC now too :) (I had WA #10 before it)