Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n=int(input())
- kex=0
- gay1=''
- gay2=''
- sex=2
- for i in range(n):
- a,b,c,d=map(str,input().split())
- d=int(d)
- if d>kex:
- kex = d
- gay1=a+' '+b
- gay2=''
- sex=2
- elif d==kex:
- if gay1!='':
- if gay2!='':
- sex=sex+1
- else:
- gay2=a+' '+b
- else:
- gay2=a+' '+b
- if sex!=2:
- print(sex)
- elif gay2=='':
- print(gay1)
- else:
- print(gay1,gay2,sep='\n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement