답안 #818

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
818 2013-03-03T06:46:31 Z tncks0121 쉬운 문제 (GA3_easy) C++
0 / 100
0 ms 16384 KB
int test_array[5000000];
int CountPair(int N, int *A){
  int i, j, ret=0;
  for(i=0; i<N; i++){
    for(j=i+1; j<N; j++) {
      if(A[j]%A[i] == 0) ++ret;
    }
  }
  return ret;
}
# 결과 실행 시간 메모리 Grader output
1 Memory limit exceeded 0 ms 16384 KB Memory limit exceeded
2 Halted 0 ms 0 KB -
3 Halted 0 ms 0 KB -
4 Halted 0 ms 0 KB -
5 Halted 0 ms 0 KB -
6 Halted 0 ms 0 KB -
7 Halted 0 ms 0 KB -
8 Halted 0 ms 0 KB -
9 Halted 0 ms 0 KB -
10 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Memory limit exceeded 0 ms 16384 KB Memory limit exceeded
2 Halted 0 ms 0 KB -
3 Halted 0 ms 0 KB -
4 Halted 0 ms 0 KB -
5 Halted 0 ms 0 KB -
6 Halted 0 ms 0 KB -
7 Halted 0 ms 0 KB -
8 Halted 0 ms 0 KB -
9 Halted 0 ms 0 KB -
10 Halted 0 ms 0 KB -