Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
63820 彭慕允 偶数个1 C++ Wrong Answer 2 MS 280 KB 348 2024-01-19 19:55:48

Tests(0/10):


Code:

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


Run Info:

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