Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
127316 | 赵乘浩 | 偶数个1 | Python3 | Accepted | 47 MS | 3860 KB | 509 | 2025-07-27 09:59:14 |
n = int(input()) a =[] for i in range(n): b = input().split() a.append(b) row_ok = True #是偶数个1 for row in range(n): t = a[row].count('1') if t%2==1: row_ok =False break column_ok = True for col in range(n): t = 0 for i in range(n): #a[i][col] if a[i][col] == '1': t+=1 if t%2 ==1 : column_ok =False break if row_ok and column_ok: print("OK") else: print("Corrupt")