6 条题解
-
-1
Python n = int(input()) score_100 = 0 score_90_99 = 0 score_80_89 = 0 score_70_79 = 0 score_60_69 = 0 score_below_60 = 0 for _ in range(n): score = int(input()) if score == 100: score_100 += 1 elif score >= 90 and score <= 99: score_90_99 += 1 elif score >= 80 and score <= 89: score_80_89 += 1 elif score >= 70 and score <= 79: score_70_79 += 1 elif score >= 60 and score <= 69: score_60_69 += 1 else: score_below_60 += 1 print(score_100) print(score_90_99) print(score_80_89) print(score_70_79) print(score_60_69) print(score_below_60)
信息
- ID
- 39
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 4
- 标签
- 递交数
- 898
- 已通过
- 404
- 上传者