100 atcoder#ABC113B. [ABC113B] Palace
[ABC113B] Palace
Score: points
Problem Statement
A country decides to build a palace.
In this country, the average temperature of a point at an elevation of meters is degrees Celsius.
There are places proposed for the place. The elevation of Place is meters.
Among them, Princess Joisino orders you to select the place whose average temperature is the closest to degrees Celsius, and build the palace there.
Print the index of the place where the palace should be built.
It is guaranteed that the solution is unique.
Constraints
- All values in input are integers.
- The solution is unique.
Input
Input is given from Standard Input in the following format:
Output
Print the index of the place where the palace should be built.
2
12 5
1000 2000
1
- The average temperature of Place is degrees Celsius.
- The average temperature of Place is degrees Celsius.
Thus, the palace should be built at Place .
3
21 -11
81234 94124 52141
3