Guest User

Untitled

a guest
Apr 21st, 2021
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. if __name__ == '__main__':
  2.     reords = []
  3.    
  4.     for _ in range(int(input())):
  5.         name = input()
  6.         score = float(input())
  7.         reords.append([name, score])
  8.  
  9.     mark = sorted(set(map(lambda x: x[1], reords)))[1]
  10.     for n, m in sorted(filter(lambda x: x[1] == mark, reords)):
  11.         print(n)
  12.  
Advertisement
Add Comment
Please, Sign In to add comment