Submission #17429

#TimeUsernameProblemLanguageResultExecution timeMemory
17429atomzeno쉬운 문제 (GA3_easy)C++98
40 / 100
0 ms1084 KiB
int yes(int x,int y){ if(y%x==0||x%y==0)return 1; return 0; } int CountPair(int N, int *A){ int i,ans=0,j; for(i=0;i<N;i++){ for(j=i+1;j<N;j++){ ans+=yes(A[i],A[j]); } } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...