# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
148349 | sg1774 | 최댓값 (tutorial2) | C++11 | 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;
int a[200];
int main(){
int z,s=0;
scanf("%d",&z);
for(int i=0;i<z;i++){
scanf("%d",&a[i]);
s=max(s,a[i]);
}
printf("%d",s);
return 0;
}