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

Обсуждение задачи 1011. Кондукторы

I'm sure tests are wrong. Look example here!
Послано Orshanskiy Sergey 4 ноя 2002 05:02
I've submitted one 'Accepted Pascal Solution' from forum and
got accepted. Than I started to run my program and that program
on random tests.
After about 100,000 random tests I've noticed the difference.
Example
24.80 24.83
My prg. answered 129
That prg. asnwered 125
But 24.80 / 100 * 125 = 31.0000000000
    24.83 / 100 * 125 = 31.0375000000
      What is the number of conductors?
GREATER than 31 and LESS that 31.0375??
May be GREATER means NOT LESS?

    24.80 / 100 * 129 = 31.992..
    24.83 / 100 * 129 = 32.0307..
And here all is OK.
I got WA,my code also answered 129!!!!
Послано use_c 6 ноя 2002 15:53
i got 125 bue also wa
Послано Coldfeel 19 ноя 2002 11:04
i got 125 bue also wa
Re: i got 125 but also wa
Послано Coldfeel 19 ноя 2002 11:13
just now i change something in my program ,it got AC,i think u the problem have no mistakes in it.
Послано Coldfeel 19 ноя 2002 14:24
>
BTW:not 125 but 129
Послано Coldfeel 19 ноя 2002 14:25
> >
NO!!!!
Послано Serrg 23 янв 2003 02:07
my program got AC, but for this test it output 129!
Re: I'm sure tests are wrong. Look example here!
Послано ytj 7 дек 2005 10:22
but my program got 125
It's still wrong answer
maybe FRAC funtion must be used
Re: I'm sure tests are wrong. Look example here!
Послано Sni 19 дек 2005 16:52
haha
My pascal said that trunc(24.8*100)=2479
I'll use round().
My AC Pascal Pro gives 129.
Послано Yu Yuanming 23 дек 2005 11:48