#abc275a. A - Find Takahashi
A - Find Takahashi
Score : points
问题描述
在 AtCoder 村庄中有 座桥。编号为 的桥的高度为 (其中 是一个整数,取值范围在 到 之间)。
村庄中任意两座不同的桥具有不同的高度。
请输出表示村庄中最高桥梁的数字。
以上为通义千问 qwen-max 翻译,仅供参考。
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.
Sample Input 1
3
50 80 70
Sample Output 1
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.
Sample Input 2
1
1000000000
Sample Output 2
1
The village has only one bridge, so the first bridge is the highest.
Sample Input 3
10
22 75 26 45 72 81 47 29 97 2
Sample Output 3
9
The village has ten bridges, and the ninth bridge (with a height of ) is the highest.
update @ 2024/3/10 11:34:29