n = int(input())
for i in range(n):
a = [int(x)for x in input().split()]
b = [int(x)for x in input().split()]
ar = True
if a[1] == a[3] or a[1] != a[5] or b[1] == b[3] or b[1] != b[5]:#不符
print("A",end="")
ar = False
if a[6] != 1 or b[6] != 0:
print("B",end="")
ar = False
if a[1] == b[1] or a[3] == b[3] or a[5] == b[5]:
print("C",end="")
ar = False
if ar:
print("None")
else:
print()
n = int(input())
for i in range(n):
a = [int(x)for x in input().split()]
b = [int(x)for x in input().split()]
ar = True
if a[1] == a[3] or a[1] != a[5] or b[1] == b[3] or b[1] != b[5]:#不符
print("A",end="")
ar = False
if a[6] != 1 or b[6] != 0:
print("B",end="")
ar = False
if a[1] == b[1] or a[3] == b[3] or a[5] == b[5]:
print("C",end="")
ar = False
if ar:
print("None")
else:
print()
我送出AC,為什麼你覺得有錯?
n = int(input())
for i in range(n):
a = [int(x)for x in input().split()]
b = [int(x)for x in input().split()]
ar = True
if a[1] == a[3] or a[1] != a[5] or b[1] == b[3] or b[1] != b[5]:#不符
print("A",end="")
ar = False
if a[6] != 1 or b[6] != 0:
print("B",end="")
ar = False
if a[1] == b[1] or a[3] == b[3] or a[5] == b[5]:
print("C",end="")
ar = False
if ar:
print("None")
else:
print()
我送出AC,為什麼你覺得有錯?
可以了 謝謝 不知道為什麼之前測試的時候過不了