| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 64177 | 祝家懿 | 偶数个1 | C++ | Wrong Answer | 2 MS | 300 KB | 577 | 2024-01-20 17:51:26 |
#include<bits/stdc++.h> using namespace std; int a[101][101]; int main() { int n,x,X; cin>>n; for(int i=0;i<n;i++){ for(int k=0;k<n;k++){ cin>>a[i][k]; } } for(int i=0;i<n;i++){ for(int k=0;k<n;k++){ if(a[i][k]=1){ x++; } } if(x%2!=0){ cout<<"Corrupt"; return 0; } else{ X++; x=0; } } for(int k=0;k<n;k++){ for(int i=0;i<n;i++){ if(a[i][k]=1){ x++; } } if(x%2!=0){ cout<<"Corrupt"; return 0; } else{ X++; x=0; } } cout<<"OK"; return 0; }
------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