BC90 小乐乐算多少人被请家长
思路:
step1:输入有多少组;
step2:分别打印,计算平均分并判断是否累加;
step3:打印最后结果;
代码如下:
n = int(input())
i = 1
x = 0
while i <= n:
a,b,c = list(map(int,input().split()))
if (a+b+c)/3 < 60:
x += 1
i += 1
print(x)
n = int(input())
i = 1
x = 0
while i <= n:
a,b,c = list(map(int,input().split()))
if (a+b+c)/3 < 60:
x += 1
i += 1
print(x)