Guest User

Untitled

a guest
May 8th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. scores = set()
  2. results = []
  3.  
  4. for _ in range(int(raw_input())):
  5.     name = raw_input()
  6.     score = float(raw_input())
  7.     scores.add(score)
  8.     results.append([name, score])
  9.  
  10. key = sorted(scores)[1]
  11. for (name,_) in filter(lambda l: l[1] == key, sorted(results)):
  12.     print name
Add Comment
Please, Sign In to add comment