You are viewing a single comment's thread. Return to all comments →
you inspired me to optimize my solution to two-liner :)
grades = sorted([[input(), float(input())] for i in range(int(input()))]) print(*[x for x, y in grades if y == sorted(set([score for name, score in grades]))[1]], sep='\n')
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 →
you inspired me to optimize my solution to two-liner :)