Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
86727 | 汤弘毅 | 偶数个1 | Python3 | Accepted | 49 MS | 3884 KB | 573 | 2024-07-27 11:37:46 |
n = int(input()) lst = [] for i in range(n): lst.append(list(map(int,input().split()))) def test_col(s): for i in s: if type(i) == int: if i%2 != 0: return False elif sum(i)%2 != 0: return False return True if test_col(lst): a,b,c,d = 0,0,0,0 for i in range(n): a = a+lst[i][0] b = b+lst[i][1] c = c+lst[i][2] d = d+lst[i][3] if test_col([a,b,c,d]): print('OK') else: print('Corrupt') else: print('Corrupt')