| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 78684 | sh25_wuyy | 图像相似度 | C++ | 通过 | 0 MS | 260 KB | 419 | 2025-12-27 10:15:47 |
#include<iostream> using namespace std; int a[101][101],b[101][101]; int main() { int n,m; cin>>n>>m; float S=0; 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]){ S++; } } } printf("%.2f",S*100/(m*n)); return 0; }