if __name__ == '__main__':
n = int(input())
aa = []
ab = []
ba = []
bb = []
for i in range(n):
inputs = input().split(" ")
aa.append(int(inputs[0]))
ab.append(int(inputs[1]))
ba.append(int(inputs[2]))
bb.append(int(inputs[3]))
a = 0
b = 0
for i in range(n):
sum = aa[i] + ba[i]
if sum == ab[i] and sum != bb[i]:
b += 1
elif sum == bb[i] and sum != ab[i]:
a += 1
print("%u %u" % (a, b))
PAT (Basic Level) Practice (中文)1046 划拳
最新推荐文章于 2024-08-24 11:00:49 发布