1 solutions
-
0
#include <stdio.h> int main() { int m,n,t,i; double sum=0; scanf("%d %d",&m,&n); int a[m][n]; int b[m][n]; for(t=0;t<m;t++){ for(i=0;i<n;i++){ scanf("%d",&a[t][i]);
} } for(t=0;t<m;t++){ for(i=0;i<n;i++){ scanf("%d",&b[t][i]);
} } for(t=0;t<m;t++){ for(i=0;i<n;i++){ if(b[t][i]==a[t][i]){ sum++; } } } double k; k=(sum/(m*n))*100; printf("%.2lf",k); return 0; }
- 1
Information
- ID
- 6781
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- 7
- Tags
- (None)
- # Submissions
- 126
- Accepted
- 33
- Uploaded By