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