diff --git a/AtCoder/ABC235/B/B.cpp b/AtCoder/ABC235/B/B.cpp new file mode 100644 index 00000000..e37c0179 --- /dev/null +++ b/AtCoder/ABC235/B/B.cpp @@ -0,0 +1,21 @@ +#include + +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; +}