为啥 wrong answer 呢?(我用的python3)

代码如下
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 条评论

  • @ 2018-01-03 13:56:38

    自己评论自己,好吧,看了别人的讨论发现最后一个学生是班级评议成绩,太粗心了。。。。。

  • 1

信息

ID
1001
难度
5
分类
模拟 点击显示
标签
递交数
39038
已通过
12700
通过率
33%
被复制
120
上传者