ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Common Board

Measuring the inclination.
Posted by Petko Minkov 3 Oct 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.
Posted by Ilievski Bozidar 3 Oct 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.
Posted by tjq(killer of zju) 3 Oct 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
Posted by Dmitry S. Lyubshin 3 Oct 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,
Posted by tjq(killer of zju) 3 Oct 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!