Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if __name__ == '__main__':
- score_list = []
- for i in range(int(raw_input())):
- name = raw_input()
- score = float(raw_input())
- score_list.append([name,score])
- second_highest = sorted(set([score for name,score in score_list]))[1]
- print("\n".join(sorted(set([name for name, score in score_list if score==second_highest]))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement