We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
N=int(input())
a=sorted([[input(),float(input())] for _ in range(N)])
b=[a[i][1] for i in range(N)]
m=min(b)
while min(b)==m:
b.remove(m)
print ('\n'.join([a[i][0] for i in range(N) if a[i][1]==min(b)]))
Cookie support is required to access HackerRank
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 →
In python3