# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
18784 | 2016-02-15T07:27:37 Z | pang | 최댓값 (tutorial2) | C++14 | 0 ms | 0 KB |
#include<iostream> using namespace std; int main() { int n; cin >> n; int x,maxv=-999999999; for(int i=0; i<n; i++) { cin >> x; if(maxv<x) maxv=x; } cout << maxv << endl; return 0; }