Canadian Computing Competition: 2000 Stage 1, Senior #5
A square
Your job is to determine which sheep may be eaten by the coyote.
Assume that the southwest corner of the field is located at
Note: The constraints have changed from the original problem.
Input Specification
The first line of input gives the number of sheep, between
Output Specification
For each sheep that might be eaten print a line The sheep at (x, y) might be eaten.
where
Sample Input
6
100
100
200
150
140
200
100
300
300
300
300
100
Sample Output
The sheep at (100, 100) might be eaten.
The sheep at (300, 100) might be eaten.
Comments
Got stuck for much time... Does "hard" here mean more advanced algorithm or just more powerful data processing technique?