Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
63619 杨莹斌 图像相似度 C++ Wrong Answer 2 MS 296 KB 499 2024-01-19 12:10:20

Tests(0/10):


Code:

#include <bits/stdc++.h>. using namespace std; int main (){ int m,n; cin>>m>>n; int d = 0; int a[101][101],b[101][101]; 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]; } }for(int i = 0;i < m;i++){ for(int j = 0;j < n;j++){ if(a[i][j] == b[i][j]){ d++; } } } double w; w = (double)d / (m * n); printf("%.2lf%%",w * 100); 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-----
48.17%