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

Обсуждение задачи 1600. Аэропорт

What can be lower bound for speed? For example, can it be 1e-10 :) ?
Послано partisan (Andrey Korotkov) 16 сен 2008 00:49
Re: What can be lower bound for speed? For example, can it be 1e-10 :) ?
Послано Denis Koshman 16 сен 2008 20:42
I've got AC with 1e-8
Re: What can be lower bound for speed? For example, can it be 1e-10 :) ?
Послано partisan (Andrey Korotkov) 18 сен 2008 20:07
It's your epsilon for compare or minimum possible speed for object? (Sorry for stupid question if I'm wrong in my suppose)
Re: What can be lower bound for speed? For example, can it be 1e-10 :) ?
Послано partisan (Andrey Korotkov) 18 сен 2008 21:10
Problem isn't in this. I had crash #8 (Invalid floating point operation) and just find the problem and got AC.
Re: What can be lower bound for speed? For example, can it be 1e-10 :) ?
Послано Denis Koshman 19 сен 2008 03:28
This is 'eps' for comparisons (mostly against zero). I don't care about speed, I just find minimum non-negative time. Non-negative means 't > -eps'. Also, right before output I write 'if(t<0) t=0' to protect from -0.000 output. Same thing takes place before 'sqrt' evaluation.