# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
14373 | ggoh | 쉬운 문제 (GA3_easy) | C++98 | 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<cstdio>
int a[100],b,i,j,x;main(){scanf("%d",&b);
for(i=0;i<b;i++)scanf("%d",&a[i]);
for(i=0;i<b-1;i++)for(j=i+1;j<b;j++)if(a[j]%a[i]==0)x++;
printf("%d",x);}