답안 #71701

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
71701 2018-08-25T11:55:44 Z eric00513 최댓값 (tutorial2) C++
0 / 100
3 ms 592 KB
int GetMax(int N, int *A){
  	int i, max=0;
  
  	for(i=1; i<=N; i++)
      	if(max<A[i]) max=A[i];
 	A[0]=max;
	return A[0];
}
# 결과 실행 시간 메모리 Grader output
1 Correct 3 ms 376 KB Output is correct
2 Correct 2 ms 484 KB Output is correct
3 Incorrect 3 ms 592 KB Output isn't correct
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 3 ms 592 KB Output isn't correct
2 Halted 0 ms 0 KB -