Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
64166 夏轩淇 偶数个1 C++ Wrong Answer 2 MS 288 KB 574 2024-01-20 17:44:06

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int a[100][100]; int main() { int n,sum=0,t=0; cin>>n; for(int i=0; i<n; i++) { for(int j=0; j<n; j++) { cin>>a[i][j]; } } for(int i=0; i<n; i++) { sum=0; for(int j=0; j<n; j++) { if (a[i][j]==1){ sum++; } } if(sum % 2 == 0){ t++; } } for(int i=0; i<n; i++) { sum=0; for(int j=0; j<n; j++) { if (a[j][i]==1){ sum++; } } if(sum % 2 == 0){ t++; } } if(t==n*n){ cout<<"Corrupt"; }else{ cout<<"OK"; } return 0; }


Run Info:

------Input------
50 0 0 0 0 1 0 1 1 1 0 0 0 1 0 1 0 1 0 0 0 1 1 1 1 0 1 1 1 1 0 0 1 0 0 1 1 1 1 1 1 1 1 0 1 1 0 0 1 1 0 1 1 0 1 0 1 1 0 0 0 1 0 0 0 0 0 1 1 1 1 1 0 0 1 0 0 0 1 0 0 1 0 1 0 1 0 0 0 1 0 0 1 0 0 0 1 1 1 1 1 1 1 0 1 0 0 1 0 0 1 1 0 0 1 0 1 0 1 0 0 0 0 0 1 1 1 1 0 1 0 0 0 0 0 1 1 0 1 1 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 1 1 1 1 1 1 0 1 1 1 0 1 1 1 1 0 1 0 1 0 1 0 0 1 1 1 1 1 0 0 1 0 0 0 0 1 0 1 1 0 1 1 1 0 0 0 0 0 1 1 1 0 0 0 0 1 0 0 1 1 1 0 1 1 1 0 1 1 1 1 1 0 0 1 1 0 0 1 0 0 0 0 1 0 1 1 1 0 1 0
------Answer-----
Corrupt
------Your output-----
OK