You are viewing a single comment's thread. Return to all comments →
n = []
for _ in range(int(input())): name = input() score = float(input()) n.append([name, score])
second_lowest = sorted({score for _, score in n})[1]
for name, score in sorted(n): if score == second_lowest: print(name)
Seems like cookies are disabled on this browser, please enable them to open this website
Nested Lists
You are viewing a single comment's thread. Return to all comments →
n = []
for _ in range(int(input())): name = input() score = float(input()) n.append([name, score])
second_lowest = sorted({score for _, score in n})[1]
for name, score in sorted(n): if score == second_lowest: print(name)