Run ID:86727

提交时间: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')