Skip to content

Commit

Permalink
[BOJ] 10825
Browse files Browse the repository at this point in the history
  • Loading branch information
heerucan committed Apr 13, 2022
1 parent 60febb5 commit 1c25fc0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions BOJ/10825.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import sys

n = int(sys.stdin.readline())
data = [(sys.stdin.readline().split()) for _ in range(n)]

data.sort(key=lambda x:(-int(x[1]),int(x[2]),-int(x[3]),x[0]))

for i in data:
print(i[0])

0 comments on commit 1c25fc0

Please sign in to comment.