|
|
back to boardCommon BoardMeasuring the inclination. 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. I tried both with negative and not negative inclination and still got WA. Maybe the output is wrong. Re: Measuring the inclination. > 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 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, > 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! |
|
|