# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
16263 | eaststar | 쉬운 문제 (GA3_easy) | C++14 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <stdio.h>
int a[60],cnt;
int main(){
int i,j,n;
scanf("%d",&n);
for(i=1;i<=n;++i)scanf("%d",a+i);
for(i=1;i<=n;++i){
for(j=i+1;j<=n;++j)if(i!=j&&a[j]%a[i]==0)++cnt;
}
printf("%d",cnt);
return 0;
}