Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
75573 sh25_ganzy 图像相似度 C++ 通过 0 MS 256 KB 472 2025-12-07 20:37:56

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int m,n; cin>>m>>n; int a[m][n],b[m][n]; int s=0; for(int i=0;i<m;i++){ for(int j=0;j<n;j++){ cin>>a[i][j]; } } for(int i=0;i<m;i++){ for(int j=0;j<n;j++){ cin>>b[i][j]; if(a[i][j]==b[i][j]){ s++; } } } cout<<fixed<<setprecision(2)<<100.0*s/m/n; return 0; }


测评信息: