# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
18912 | dltldls95 | 최댓값 (tutorial2) | C++98 | 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 <algorithm>
#include <iostream>
int arr[10000]
int main()
{
int num;
std::cin >> num;
for (int i = 0; i < num; i++)
{
std::cin >> arr[i];
}
std::cout<<GetMax(num, arr)<<std::endl;
}
int GetMax(int n, int *a)
{
return *max_element(a, a + n);
}