0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-27 12:31:58 +00:00
OI-codes/AtCoder/ABC235/B/B.cpp

22 lines
306 B
C++
Raw Normal View History

#include <iostream>
using std::cin;
using std::cout;
using std::endl;
int n, h, ans;
int main() {
cin >> n;
for (int i = 1; i <= n; i++) {
cin >> h;
if (h <= ans) {
break;
} else {
ans = h;
}
}
cout << ans << endl;
return 0;
}