| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 83726 | 石晋骁 | 图像相似度 | C++ | Accepted | 4 MS | 344 KB | 394 | 2024-07-14 16:39:33 |
#include<bits/stdc++.h> using namespace std; int a[100][100]; int b[100][100]; int main(){ int n,m,no = 0; cin >> 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]; if(a[i][j] == b[i][j]){ no++; } } } printf ("%.2lf" , no*100.0/(n*m)); return 0; }