제출 #12834

#제출 시각아이디문제언어결과실행 시간메모리
12834yongwhan쉬운 문제 (GA3_easy)C++98
100 / 100
0 ms1088 KiB
int CountPair(int N, int A[]) {
  int ret=0;
  for (int i=0; i<N; i++) for (int j=i+1; j<N; j++) {
    int x=A[i], y=A[j];
    if(x) if(y%x==0) ret++;
  }
  return ret;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...