Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
6647 黄宜洋 偶数个1 C++ Wrong Answer 0 MS 276 KB 713 2025-03-08 16:02:01

Tests(1/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a[101][101]; int n,c=0; bool f=1; cin>>n; for(int i=0;i<n+1;i++){ for(int j=0;j<n+1;j++){ cin>>a[i][j]; if(a[i][j]==1) c++; } if(c%2==1) f=0; } for(int i=0;i<n+1;i++){ c=0; for(int j=0;j<n+1;j++){ if(a[i][j]==1) c++; } if(c%2==1) f=0; } if(f) cout<<"OK"; else cout<<"Corrupt"; return 0; }


Run Info:

------Input------
55 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
------Answer-----
OK
------Your output-----
Corrupt