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 <iostream>
int GetMax(int N, int *A)
{
int _temp;
for (int i = 0; i <N - 1; i++)
{
for (int j = 0; j <N - 1 - i; j++)
{
if (A[j]<A[j + 1])
{
_temp = A[j];
A[j] = A[j + 1];
A[j + 1] = _temp;
}
}
}
return A[0];
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |