| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 64152 | 周梓易 | 图像相似度 | C++ | Accepted | 6 MS | 432 KB | 469 | 2024-01-20 17:36:02 |
#include<bits/stdc++.h> using namespace std; long long a[1001]; int main(){ long long n,m,min=0; cin>>n>>m; double a[n][m],b[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]){ min++; } } } double c=min*1.0/(n*m*1.0); printf("%.2lf",c*100); return 0; }