| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 157246 | 王晏林 | 偶数个1 | C++ | Wrong Answer | 2 MS | 312 KB | 850 | 2026-07-21 13:20:47 |
#include<iostream> using namespace std; int main(){ int a[101][101]={},n,c=0; cin>>n; for(int i=0;i<n;i++){ for(int s=0;s<n;s++){ cin>>a[i][s]; } } for(int i=0;i<n;i++){ for(int s=0;s<n;s++){ if(a[i][s]==1){ c++; } if(c%2!=0){ cout<<"Corrupt"<<endl; return 0; } } } for(int i=0;i<n;i++){ for(int s=0;s<n;s++){ cin>>a[i][s]; } } for(int i=0;i<n;i++){ int c=0; for(int s=0;s<n;s++){ if(a[i][s]==1){ c++; } if(c%2!=0){ cout<<"Corrupt"<<endl; return 0; } } } cout<<"OK"<<endl; 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