| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 157241 | 李沐阳 | 偶数个1 | C++ | Accepted | 4 MS | 316 KB | 481 | 2026-07-21 13:14:36 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,a[101][101]={}; 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++){ int c=0; for(int j=0;j<n;j++){ if(a[i][j]==1) c++; } if(c%2!=0){ cout<<"Corrupt"<<endl; return 0; } c=0; for(int j=0;j<n;j++){ if(a[j][i]==1) c++; } if(c%2!=0){ cout<<"Corrupt"<<endl; return 0; } } cout<<"OK"<<endl; return 0; }