문제
Problem 1: Stampede [Brian Dean]
Farmer John's N cows
Viewed from above, each cow is represented by a unit-length horizontal line segment, specified by the coordinates of its left corner point at time t=0. For example,
FJ is not particularly thrilled that his cows are outside running instead of in the barn producing milk. He plans to admonish them with a stern lecture after the race ends. In order to determine which of his cows are participating in the race, FJ situates himself at
Please compute the number of cows FJ can see during the entire race.
SOLUTION NOTES: FJ can see cows 1 and 2 but not cow 3.
입력
The first line of the input contains N. Each of the following N lines describes a cow with three integers x y r, corresponding to a cow whose left endpoint is at (x,y) at time t=0, moving to the right at a continuous speed of 1 unit of distance every r units of time. The value of x is in the range -1000..-1, the value of y is in the range
출력
A single integer, specifying the number of cows FJ can see during the entire race (from t=0 onward).
예제1
3
-2 1 3
-3 2 3
-5 100 1
2