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.
if name == 'main':
records=[]
N=int(input())
if (2<=N<=5):
for _ in range(N):
name = input()
score = float(input())
records.append([name,score])
s=[]
for j in range(len(records)):
s.append(records[j][1])
s.sort()
a=[]
for i in range(len(records)):
if(records[i][1]==s[1]):
a.append(records[i][0])
a.sort()
for k in a:
print(k)
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 →