You are viewing a single comment's thread. Return to all comments →
if __name__ == '__main__': records = [] for _ in range(int(input())): name = input() score = float(input()) records.append([name, score]) scores = [s for n, s in records] second_min = sorted(set(scores))[1] names=[n for n,s in records if s==second_min] names.sort() for name in names: 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 →