λ¬Έμ
https://www.acmicpc.net/problem/10825
νμ΄
n = int(input())
score_list = []
for i in range(n):
[name, kor, eng, math] = map(str, input().split())
score_list.append([name, int(kor), int(eng), int(math)])
sorted_score_list = sorted(score_list, key=lambda x : (-x[1], x[2], -x[3], x[0]))
for score in sorted_score_list:
print(score[0])
'ποΈ Algorithm > π© λ°±μ€' μΉ΄ν κ³ λ¦¬μ λ€λ₯Έ κΈ
π© [λ°±μ€] [Python] [Silver2] 18111λ²_λ§μΈν¬λννΈ (0) | 2023.03.20 |
---|---|
π© [λ°±μ€] [Python] [Gold5] 11000λ²_κ°μμ€ λ°°μ (0) | 2023.03.19 |
π© [λ°±μ€] [Python] [Gold3] 1600λ²_λ§μ΄ λκ³ ν μμμ΄ (0) | 2023.03.16 |
π© [λ°±μ€] [Python] [Gold4] 17298λ²_μ€ν°μ (1) | 2023.03.15 |
π© [λ°±μ€] [Python] [Gold5] 2493λ²_ν (0) | 2023.03.13 |