파이썬/백준
5635번: 생일
L_SU
2022. 6. 6. 20:30
# 생일
n = int(input(""))
at_book = []
for i in range(n):
human = input().split()
human[1:] = (list(map(int, human[1:])))
at_book.append(human)
at_book.sort(key=lambda x: (x[3], x[2], x[1]))
print(at_book[-1][0])
print(at_book[0][0])