atcoder#ABC275A. [ABC275A] Find Takahashi
[ABC275A] Find Takahashi
Score : points
Problem Statement
There are bridges in AtCoder Village. The height of the bridge numbered is ( is an integer between and ). Every two different bridges in the village have different heights.
Print the number representing the highest bridge in the village.
Constraints
- All are different.
- All values in the input are integers.
Input
The input is given from Standard Input in the following format:
Output
Print the integer representing the highest bridge in AtCoder village.
3
50 80 70
2
The village has three bridges. The first, second, and third bridges have heights of , , and , respectively, so the second bridge is the highest. Thus, should be printed.
1
1000000000
1
The village has only one bridge, so the first bridge is the highest.
10
22 75 26 45 72 81 47 29 97 2
9
The village has ten bridges, and the ninth bridge (with a height of ) is the highest.