We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb82445 commit 8a926e4Copy full SHA for 8a926e4
14/1.py
@@ -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