# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
8522 | 2014-09-16T00:54:53 Z | eric4266 | 쉬운 문제 (GA3_easy) | C++ | 0 ms | 0 KB |
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; }