Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
83713 尚雨钒 图像相似度 C++ Wrong Answer 1 MS 296 KB 389 2024-07-14 16:35:58

Tests(0/10):


Code:

#include <iostream> using namespace std; int a[100][100]; int b[100][100]; int main() { int n,m; cin>>n>>m; for(int i=0; i<n; i++) { for(int j=0; j<m; j++) { cin>>a[i][j]; cin>>b[i][j]; } } int sum=0; for(int i=0; i<n; i++) { for(int j=0; j<n; j++) { if(a[i][j]==b[i][j]) { sum++; } } } printf("%.2lf",sum*100.0/(m*n)*2); 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-----
200.33