| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 157702 | 张蔚林 | 偶数个1 | C++ | Wrong Answer | 3 MS | 312 KB | 511 | 2026-08-15 11:28:31 |
#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; }
------Input------
10 1 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 1 1 0 0 0 0 1 0 0 0 1 1 1 0 0 0 0 1 0 0 1 0 1 1 0 1 0 0 0 0 0 0 1 1 0 1 0 1 0 0 1 1 1 1 1 0 0 1 0 1 1 0 0 1 1 1 1 0 0 0 0 1 1 1 0 0 1 1 1 0 0 0 0 1 0 1 0 1 1
------Answer-----
OK
------Your output-----
Corrupt