Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scores = set()
- results = []
- for _ in range(int(raw_input())):
- name = raw_input()
- score = float(raw_input())
- scores.add(score)
- results.append([name, score])
- key = sorted(scores)[1]
- for (name,_) in filter(lambda l: l[1] == key, sorted(results)):
- print name
Add Comment
Please, Sign In to add comment