我运行了一下,结果3#和10#WA了。
但下载了数据点(3#)后在编辑器上运行了亿下,又对照了亿下输出。
一毛一样
code:
s=int(input())
jxjs={}
for i in range(s) :
rm,qmcj,pycj,gb,xb,rw=input().split()
qmcj,pycj,rw=int(qmcj),int(pycj),int(rw)
jxj=0
if qmcj>80 and rw>=1 :
jxj+=8000
if qmcj>85 and pycj>80 :
jxj+=4000
if qmcj>90 :
jxj+=2000
if qmcj>85 and xb=="Y" :
jxj+=1000
if pycj>80 and gb=="Y" :
jxj+=850
jxjs[rm]=jxj
ma_rm=max(jxjs,key=lambda r:jxjs[r])
print(ma_rm)
print(jxjs[ma_rm])
su=0
for i in jxjs.values() :
su+=i
print(su)