| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 153132 | 李昱龙 | 偶数个1 | C++ | Wrong Answer | 3 MS | 652 KB | 383 | 2026-05-10 10:35:17 |
#include<iostream> using namespace std; int a[1000][1000]; int main(){ int n,sum=0,num=0; cin>>n; for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ cin>>a[i][j]; } } for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ sum+=a[i][j]; if(sum%2==0){ num++; } } } if(num==n){ cout<<"OK"; } else{ cout<<"Corrupt"; } 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