Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
8018 | 邓小龙 | 偶数个1 | C++ | Wrong Answer | 0 MS | 264 KB | 637 | 2025-06-07 09:10:18 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,cnt=0; cin>>n; int a[n][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++){ cnt=0; for(int j=0;j<n;j++) cnt+a[i][j]; if(cnt%2==1){ cout<<"Corrupt"; return 0; } } for(int j=0;j<n;j++){ cnt=0; for(int i=0;i<n;i++) cnt+a[i][j]; if(cnt%2==1){ cout<<"Corrupt"; return 0; } } cout<<"OK"<<endl; return 0; }
------Input------
10 0 0 0 1 0 1 0 1 1 1 0 0 1 1 1 0 0 1 0 1 1 0 0 0 0 1 0 0 0 1 1 0 1 0 0 0 1 1 1 0 0 0 1 1 1 1 1 0 1 1 1 0 1 0 1 0 0 1 0 0 0 0 1 0 1 1 1 1 0 0 0 1 0 1 0 1 1 1 1 1 0 0 1 0 0 0 1 0 1 1 0 1 1 0 0 0 0 1 1 1
------Answer-----
Corrupt
------Your output-----
OK