# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
469394 | 2021-08-31T19:09:48 Z | wonsei | 최댓값 (tutorial2) | C++17 | 0 ms | 0 KB |
#include<bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int ans = -1; while(n--) { int x; cin >> x; ans = max(ans, x); } cout << ans << "\n"; }