Run ID:65623
提交时间:2024-01-27 18:43:59
#include <iostream> #include <cstdio> using namespace std; int main(){ int k,j,l=0,f,g; cin>>f; int v[f][f]; for(k=0;k<f;k++){ for(j=0;j<f;j++) cin>>v[k][j]; } for(k=0;k<f;k++){ g=0; for(j=0;j<f;j++){ if(v[k][j]==1) g++; if(v[j][k]==1) l++; } if(g%2!=0||l%2!=0){ cout<<"Corrupt"; return 0; } } cout<<"OK"; return 0; }