제출 #19153

#제출 시각아이디문제언어결과실행 시간메모리
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...