| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 134964 | 编程星球01 | 偶数个1 | C++ | Accepted | 2 MS | 312 KB | 761 | 2025-11-01 20:52:57 |
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int a[100][100]; 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) { int r = 0; for (int j = 0; j < n; ++j) { r += a[i][j]; } if (r % 2 != 0) { cout << "Corrupt" << endl; return 0; } } for (int j = 0; j < n; ++j) { int c = 0; for (int i = 0; i < n; ++i) { c += a[i][j]; } if (c % 2 != 0) { cout << "Corrupt" << endl; return 0; } } cout << "OK" << endl; return 0; }