# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
8523 | eric4266 | 쉬운 문제 (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 <stdio.h>
int main()
{
int i,j,n,A[51],ans=0;
scanf("%d",&n);
for(i=1;i<=n;i++) {
scanf("%d",&A[i]);
}
for(i=1;i<=n;i++) {
for(j=n;j>0;j--) {
if(A[j]%A[i]==0&&i<j) ans++;
}
}
printf("%d",ans);
return 0;
}