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

Общий форум

Measuring the inclination.
Послано Petko Minkov 3 окт 2000 03:16
Hey buddies,

take a look of the following situation, talking bout
problem 1010 - Discrete function. If we have
points
 (1,10) (2,15) and
 (1,15) (2,10)

for example, where (x,y). Which of these two pairs
has greater inclination or is their inclination
equal ?
Re: Measuring the inclination.
Послано Ilievski Bozidar 3 окт 2000 04:16
I tried both with negative and not negative inclination and
still got WA.
Maybe the output is wrong.
Re: Measuring the inclination.
Послано tjq(killer of zju) 3 окт 2000 09:33
> I tried both with negative and not negative inclination
and
> still got WA.
> Maybe the output is wrong.
>

I feel the same, so I wrote an email to the webmaster with
my source, he said the answers are absolutely right,  but
there're logical bugs in my program, but I can't figure it
out, so please give me some hints!
Ok, get the hints
Послано Dmitry S. Lyubshin 3 окт 2000 12:17
1. Compare inclinations by absolute value.
2. The answer is always "x,x+1"
3. Just look at this test data: 3 2000000000 -2000000000 0
Thank you so much,
Послано tjq(killer of zju) 3 окт 2000 13:58
> 1. Compare inclinations by absolute value.
> 2. The answer is always "x,x+1"
> 3. Just look at this test data: 3 2000000000 -2000000000 0

fuck the problem 1010, I first tried absolute inclinations,
but it's still wrong answer, then I changed to double, and
it's still wrong answer, so I guess there're some other
mistakes, but I don't expect that we should mixed absolute
value with the double, god damned!