백준 - (#10825)

Eon·2020년 10월 16일
0

Algorithm

목록 보기
31/70

https://www.acmicpc.net/problem/10825


Code

n = int(input())

students = []
for i in range(n):
    name, kor, eng, math = input().split()
    students.append((name, kor, eng, math))

result = sorted(students, key= lambda x : (-int(x[1]),int(x[2]),-int(x[3]),x[0]))
for i in range(n):
    print(result[i][0])
profile
👨🏻‍💻 🏃🏻‍♂️ 🎶

0개의 댓글