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

Discussion of Problem 1052. Rabbit Hunt

Why wrong answer 3??????? WHY? Y?
Posted by longzeling88 15 Sep 2004 15:22
This is my program in Pascal:

[code deleted]

Edited by moderator 06.07.2006 15:01
Re: Why wrong answer 3??????? WHY? Y?
Posted by Gheorghe Stefan 15 Sep 2004 19:15
here it's test 3 (I don't know what is that last 0, but so it is. It should not matter):
16
15 15
16 17
17 19
18 21
19 23
75 19
16 62
13 69
10 76
7 83
4 90
1 97
-2 104
-5 111
-8 118
-11 125

The answer is: 10 (last 10 points of the input)
Re: Why wrong answer 3??????? WHY? Y?
Posted by Neo Nomaly 2 Mar 2005 15:37
What points are coliniar?
Re: Why wrong answer 3??????? WHY? Y?
Posted by Akshin Salimov 11 Apr 2005 02:19
The points called coliniar if they lie on one line.
For example (1,1) (2,2) (3,3) are coliniar.

Edited by author 11.04.2005 02:22
Re: Why wrong answer 3??????? WHY? Y?
Posted by Sasko Vuckov 6 Jul 2006 04:09
try this:

if you have:
------------

r:= y - k*x -n;
if (result = 0) then on_line:= true else on_line := false;

change it with:
------------

r := abs(y - k*x -n);
if (result < 0.0000000001) then on_line:= true else on_line := false;