Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
125660 李俊博 图像相似度 C++ Wrong Answer 1 MS 296 KB 430 2025-07-15 11:21:45

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int a[110][110]; int b[110][110]; int main(){ int m,n,k=0; cin>>m>>n; for(int i=1;i<n;i++){ for(int j=1;j<m;j++){ cin>>a[i][j]; } } for(int i=1;i<n;i++){ for(int j=1;j<m;j++){ cin>>b[i][j]; } } for(int i=0;i<m;i++){ for(int j=0;j<n;j++){ if(a[i][j]==b[i][j]){ k++; } } } printf("%.2lf",k*100.0/(n*m)); return 0; }


Run Info:

------Input------
30 20 0 1 1 0 0 0 0 1 0 1 0 0 1 1 0 1 1 1 0 1 0 0 0 0 1 0 1 0 1 1 0 1 1 0 1 1 0 1 0 0 0 0 0 0 0 0 0 1 0 1 1 0 1 1 1 1 1 1 1 1 0 0 0 0 1 1 0 1 1 0 0 1 0 1 0 0 0 1 1 1 0 1 1 1 1 0 1 0 1 1 0 1 1 0 0 0 1 0 0 0 0 0 1 0 1 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0 1 1 0 0 0 1 1 0 0 0 1 1 1 1 0 0 0 1 0 0 0 0 1 1 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 1 0 1 1 0 0 1 1 1 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 1 1 1 1 1 0 0 1 0 0 0 0 1 0 1 0 0 0 1 1 1 1 1 0 0 0 1 0 0 1 1 0 1 1 1 1 1 1 0 1 1 0 0
------Answer-----
48.17
------Your output-----
67.50