num=int(input()) qw=[[0 for col in range(0,4)] for row in range(0,num)] for i in range(0,num): qw[i]=input().split(" ") num1,num2=0,0 for i in range(0,num): if int(qw[i][0])+int(qw[i][2])==int(qw[i][1])and int(qw[i][0]) + int(qw[i][2]) != int(qw[i][3]):num1+=1 if int(qw[i][0]) + int(qw[i][2]) == int(qw[i][3])and int(qw[i][0])+int(qw[i][2])!=int(qw[i][1]): num2 += 1 print("{} {}".format(num2,num1))
pat python B1046
最新推荐文章于 2022-08-06 16:22:19 发布