Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
407 | 郭** | 足球联赛积分2 | Python3 | 解答错误 | 20 MS | 3384 KB | 329 | 2023-11-17 09:41:21 |
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)