Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
94564 张黄源 偶数个1 C++ Wrong Answer 2 MS 312 KB 419 2024-10-24 19:13:11

Tests(5/10):


Code:

#include<bits/stdc++.h> using namespace std; int a[101][101]; int main() { int n; cin>>n; for(int i=0; i<n; i++) { for(int j=0; j<n; j++) { cin>>a[i][j]; } } int mx=0,mc=0; for(int i=0; i<n; i++) { for(int j=0; j<n; j++) { if(a[i][j]==1){ mx++; } if(mx%2!=0){ mc=9; break; } } } if(mc==9){ cout<<"Corrupt"; }else{ cout<<"OK"; } return 0; }


Run Info:

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