#4442. Find Takahashi
Find Takahashi
Find Takahashi
题目描述
There are bridges in AtCoder Village. The height of the bridge numbered is ( is an integer between and ).
村里每座桥都有不同的高度。打印代表最高桥编号的整数。
Print the number representing the highest bridge in the village.
输入格式
The input is given from Standard Input in the following format:
输出格式
Print the integer representing the highest bridge in AtCoder village.
3
50 80 70
2
1
1000000000
1
10
22 75 26 45 72 81 47 29 97 2
9
提示
All are different.
All values in the input are integers.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.
The village has only one bridge, so the first bridge is the highest.
The village has ten bridges, and the ninth bridge (with a height of ) is the highest.
因此应该输出 。
该村只有一座桥,所以第一座桥是最高的。
该村有十座桥,第九座桥(高度为 )是最高的。
标签: AtCoder|abc275A
来源
AtCoder|abc275A