| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 64150 | 殷震轩 | 图像相似度 | C++ | Accepted | 4 MS | 348 KB | 468 | 2024-01-20 17:34:58 |
#include<bits/stdc++.h> using namespace std; int a[100][100],b[100][100]; int main() { double n,m,k,l; double o; cin>>n>>m; k=n*m; for(int i=0;i<n;i++){ for(int j=0;j<m;j++){ cin>>a[i][j]; } } for(int i=0;i<n;i++){ for(int j=0;j<m;j++){ cin>>b[i][j]; } } for(int i=0;i<n;i++){ for(int j=0;j<m;j++){ if(a[i][j]==b[i][j]){ l+=1; } } } o=l/k*100; printf("%.2lf",o); return 0; }