Skip to content

Commit 8a926e4

Browse files
authored
Create 1.py
1 parent bb82445 commit 8a926e4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

14/1.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
n = int(input())
2+
students = []
3+
4+
for _ in range(n):
5+
students.append(input().split())
6+
7+
students.sort(key=lambda x: (-int(x[1]), int(x[2]), -int(x[3]), x[0]))
8+
9+
for student in students:
10+
print(student[0])

0 commit comments

Comments
 (0)