Submission #19153

#TimeUsernameProblemLanguageResultExecution timeMemory
19153riantris최댓값 (tutorial2)C++98
100 / 100
0 ms1720 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...