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

Обсуждение задачи 1484. Кинорейтинг

Страницы: 1 2 Следующая
who gets wa6?
Послано frost 7 окт 2006 19:13
what's the trick?
3% of the ac rating.....
Re: who gets wa6?
Послано h3r0k1ll3r 7 окт 2006 19:15
I have wa6... tt
Re: who gets wa6?
Послано Jarek Versor Przybylowicz 7 окт 2006 19:18
me too :>
Re: who gets wa6?
Послано h3r0k1ll3r 7 окт 2006 19:19
Whats answer to 2 1 18?
Re: who gets wa6?
Послано SuckMyBalls 7 окт 2006 19:26
343
Re: who gets wa6?
Послано frost 7 окт 2006 19:27
343?
Re: who gets wa6?
Послано Alexander Prudaev 7 окт 2006 19:45
frost писал(a) 7 октября 2006 19:13
what's the trick?
3% of the ac rating.....

A lot of wrong tests - is all you need for low AC rating.
Re: who gets wa6?
Послано KIRILL 7 окт 2006 19:52
I don't find mistakes in my program, but WA6 too
my prog returns:

10.0 1.0 1000000
179000001

10.0 9.9 1
1

1.1 1.0 12345
123456

10.0 10.0 10
0

"Impossible" answer never returns
What about this test?
Послано Victor Barinov (TNU) 7 окт 2006 20:18
4.4 4.3 1000000
Re: What about this test?
Послано KIRILL 7 окт 2006 20:29
Maybe 14926?
my is another
Послано Victor Barinov (TNU) 7 окт 2006 20:37
My AC program outputs
29851
Re: who gets wa6?
Послано KIRILL 7 окт 2006 20:39
AC rating became 2%
try to submit your code 50 times and you'll get AC:)))
Re: my is another
Послано KIRILL 7 окт 2006 20:42
How did you got that???
I use n*(y-x)/(1-y)

(14926+4.4*1000)/(14926+1000000)=4.34999793088..
((14926+4.4*1000)/(14926+1000000)):0:1=4.3

Edited by author 07.10.2006 21:08
Re: my is another
Послано Victor Barinov (TNU) 7 окт 2006 21:04
You formula is incorrect.
What if y == 1.0 ??? You are dividing by 0 ?
Re: my is another
Послано KIRILL 7 окт 2006 21:15
y:=y+0.05-eps

without rounding 1.0 will not be achieved

Edited by author 07.10.2006 21:21
Re: my is another
Послано Victor Barinov (TNU) 7 окт 2006 21:33
first:
not  (14926+4.4*1000)/(14926+1000000)=4.34999793088..
but  (14926+4.4*1000000)/(14926+1000000)=4.34999793088..

second:
not  (14926+4.4*1000)/(14926+1000000)=4.34999793088..
but  (14926+4449999)/(14926+1000000)=4.399261621


third:
(29851+4449999)/(29851+1000000)=4.349998204

Re: my is another
Послано KIRILL 7 окт 2006 22:38
Yes you are right - i've made mistake while printing:  1000 -> 1000000,
Thank you
but i don't understand how we
should compute not rounded X value

I think that this task  more harder than
it seems after first reading:)


Edited by author 07.10.2006 22:45
Re: my is another
Послано Ivanidze 7 окт 2006 23:20
x*n can be
X=(x+.05)*n
while (X/n>=x+0.05)X--


Edited by author 08.10.2006 00:45
Re: my is another
Послано frost 8 окт 2006 06:43
mine is also 29851, but i still wa@6.
why x=x+0.05
Послано Daniel 8 окт 2006 12:57
I used y=y+0.05 in my program and get WA6.
Why x should be increased x=x+0.05?
Страницы: 1 2 Следующая