제출 #751

#제출 시각아이디문제언어결과실행 시간메모리
751CodingIsHard쉬운 문제 (GA3_easy)C++98
40 / 100
0 ms916 KiB
#include <algorithm>
using namespace std;

int CountPair(int N, int *A)
{
    int cnt = 0;
    
    sort(A , A + N);
    for(int i = 0;i < N;i++)
        for(int j = i + 1;j < N;j++)
            if(A[j] % A[i] == 0)
                cnt++;
    
    return cnt;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...