第一种:
info = list()
money = 0
ans = 0
total = 0
for i in range(int(input())):
info = list(input().split(" "))
if int(info[1])>80 and int(info[5])>=1:
money+=8000
if int(info[1])>85 and int(info[2])>80:
money+=4000
if int(info[1])>90:
money+=2000
if int(info[1])>85 and info[4]=='Y':
money+=1000
if int(info[2])>80 and info[3]=='Y':
money+=850
if money > ans:
ans = money
name = info[0]
total+=money
money = 0
print(name)
print(ans)
print(total)
第二种:
def optiontobool(ch, yes='Y', no='N'):
if ch == yes:
return True
elif ch == no:
return False
class Student:
def __init__(self,