提交时间:2023-11-17 09:41:21
运行 ID: 407
n = int(input().strip()) scores = [] for _ in range(n): a, b = map(int, input().strip().split()) scores.append((a, b)) team_score = 0 for a, b in scores: if a > b: team_score += 3 elif a == b: team_score += 1 else: break print(team_score)