# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
636192 | Only_Cpp | 최댓값 (tutorial2) | C++14 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
using namespace std;
vector<int>v;
int main(){
int n,sum=-10000;cin>>n;
while(n--){
int k;cin>>k;
sum=max(sum,k);
}
cout<<sum;
}