# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
18783 | 2016-02-15T07:24:42 Z | pang | 최댓값 (tutorial2) | C++14 | 0 ms | 0 KB |
#include<iostream> using namespace std; int main() { int n; cin >> n; int x,maxv; cin >> maxv; for(int i=1; i<n; i++) { cin >> x; if(maxv<x) maxv=x; } cout << maxv << endl; return 0; }