You are viewing a single comment's thread. Return to all comments →
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)
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 →