Fergusonball Ratings

Question 2 ( 15/15 )

n = int(input())
counter = 0
for i in range(n):
    score = int(input())
    foul = int(input())
    points = 0
    points = score*5 - foul*3
    if points > 40:
        counter += 1

if counter == n:
    print(counter,"+")
else:
    print(counter)

Last updated