Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
125713 | 田子熙 | 偶数个1 | C++ | Runtime Error | 0 MS | 104 KB | 362 | 2025-07-15 14:12:39 |
#include<bits/stdc++.h> using namespace std; int a[10010][10010]; int main(){ int n,sum=0; cin>>n; for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ cin>>a[i][j]; } } for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ if(a[i][j]==1){ sum++; } } } if(sum%2==0){ cout<<"OK"; }else{ cout<<"Corrupt"; } return 0; }
Runtime Error:Segmentation fault