| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 157703 | 张蔚林 | 偶数个1 | C++ | Accepted | 3 MS | 312 KB | 511 | 2026-08-15 11:31:28 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,t[101][101],h=0; cin>>n; for(int i=0;i<n;i++){ for(int l=0;l<n;l++){ cin>>t[i][l]; } } for(int i=0;i<n;i++){ h=0; for(int l=0;l<n;l++){ if(t[i][l]==1){ h++; } }if(h%2==1){ cout<<"Corrupt"; return 0; } } for(int i=0;i<n;i++){ h=0; for(int l=0;l<n;l++){ if(t[l][i]==1){ h++; } }if(h%2==1){ cout<<"Corrupt"; return 0; } } cout<<"OK"; return 0; }