赞
踩
Code:
- n=input().split()
- m=list(map(int,input().split()))
- c=list(map(int,input().split()))
- e=list(map(int,input().split()))
- class Student:
- def __init__(self,a1,a2,a3,a4):
- self.score = a2 + a3 + a4
- self.pr='%s %d %d %d'%(a1,a2,a3,a4)
- ls=[];j=0
- for i in n:
- ls.append(Student(i,m[j],c[j],e[j]))
- j+=1
- ls.sort(key=lambda x:x.score,reverse=True)
- print(ls[0].pr)
Code:
- m=tuple(map(int,input().split()))
- n=int(input())
- d={}
- for i,j in enumerate(m):
- if n-j in d:
- print([d[n-j],i])
- break
- d[j]=i
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。