
| Problems | Submit | Runs Status | Rank List | Statistics | Clarifications |
Unlike a straight line, a straight segment between two points
P1, P2 (normally written as P1P2) is a line that links the two
points but doesn't extend beyond them. A third point P3 is
said to be incident to P1P2 iff P3 lies on the straight line and
between the points P1 and P2. P1P2 is said to include P3. By
definition, P1 and P2 are included in P1P2. Write a program
to find the segment that includes the most number of given
points.1 1 1 5 5 9 9 5 5 5 3 2 5 3 ---- 1 5 5 1 1 1 5 5 -- --------
1. 4 2. 2