Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
156770 赵奕杰 偶数个1 C++ Wrong Answer 1 MS 468 KB 344 2026-07-10 14:23:36

Tests(1/10):


Code:

#include<bits/stdc++.h> using namespace std; long long a[1005][1005]; int main(){ int n,cnt=0; cin>>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++){ for(int j=0;j<n;j++){ if(a[i][j]==1) cnt++; } } if(cnt%2==0) cout<<"OK"; else cout<<"Corrupt"; }


Run Info:

------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