# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
2940 | imsifile | 쉬운 문제 (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 n,ba[55],cnt,i,j;int main(){scanf("%d",&n);for(;i<n;i++)scanf("%d",&ba[i]);for(i=0;i<n;i++){for(j=0;j<i;j++)cnt+=!(ba[i]%ba[j]);}printf("%d",cnt);return 0;}