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

Обсуждение задачи 1583. Сыр

Victor Barinov (TNU) If you have WA2 [2] // Задача 1583. Сыр 17 янв 2008 04:33
I got WA2, when used usual rounding.
And when i rounded all my cuts to the smallest grater than one  than get AC.
Alexander Mangilyov (TNU) Re: If you have WA2 // Задача 1583. Сыр 20 июл 2008 15:42
I used usual rounding.
But after each cut next 500g I measure not from ideal cut line, but from real cut line, taking into account accuracy of cutting machine.
xurshid_n Re: If you have WA2 // Задача 1583. Сыр 18 янв 2012 21:56
tricky:
needVolume = 500.0;

while (needVolume < <total volume> )
{
   <find y>
   iy = round(y)
  recalc volume, from 0.. to iy position.(v).
   needVolume =  v + 500.0
}