笔记整理自B站UPWLB工作生活两不误的个人空间-WLB工作生活两不误个人主页-哔哩哔哩视频教程Python 程序设计题5_哔哩哔哩_bilibili
程序设计题5
Python代码
n = int(input())
count = 0
for i in range(n):
old, score = map(int, input().split())
if (old >= 35 and score >= 80) or (old < 35 and score >= 90):
count += 1
print('晋升')
else:
print('原岗')
print(count)
输入样例
8
30 92
31 88
32 90
35 80
35 81
35 70
38 85
37 75
输出样例
晋升
原岗
晋升
晋升
晋升
原岗
晋升
原岗
5