- 谁拿了最多奖学金
- 2018-01-03 13:52:30 @
代码如下
N=int(input())
sum_get=int(0)
fir_stu=[' ',int(0)]
while N!=0:
N-=1
massage=input().split()
a_get=int(0)
if int(massage[1])>int(80) and int(massage[5])>=int(1):
a_get+=int(8000)
if int(massage[1])>int(85) and int(massage[2])>int(80):
a_get+=int(4000)
if int(massage[1])>int(90):
a_get+=int(2000)
if int(massage[1])>int(85) and massage[4]=='Y':
a_get+=int(1000)
if int(massage[1])>int(80) and massage[3]=='Y':
a_get+=int(850)
if a_get>fir_stu[1]:
fir_stu[0]=massage[0]
fir_stu[1]=int(a_get)
sum_get+=a_get
print(str(fir_stu[0]))
print(int(fir_stu[1]))
print(int(sum_get))
print('')
1 条评论
-
plzletmego LV 5 @ 2018-01-03 13:56:38
自己评论自己,好吧,看了别人的讨论发现最后一个学生是班级评议成绩,太粗心了。。。。。
- 1