# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
20737 | somnia0 | 최댓값 (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<stdio.h>
int main()
{
int n, max=0;
scanf("%d", &n);
for(int x,i=1;i<=n;i++)
{
scanf("%d", &x);
if(x>max) max=x;
}
printf("%d", max);
}