Created
October 6, 2018 14:13
-
-
Save FangjiaoXu/67225f63bbdc6e44027d57e8bb38dcca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
listnamenscore=[] | |
listsecond=[] | |
listsecondscore=[] | |
n=int(raw_input()) | |
for i in range(n): | |
listnamenscore.append([raw_input(), float(raw_input())]) | |
sorted(listnamenscore) | |
secondscore=listnamenscore[1][1] | |
for i in range(n): | |
if listnamenscore[i][1]==secondscore: | |
listsecond.append(listnamenscore[i][0]) | |
for i in range(len(listsecond)): | |
print listsecond[i] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment