From 1c25fc0bf0d11db4e5627996d386fcb55109de01 Mon Sep 17 00:00:00 2001 From: heerucan Date: Wed, 13 Apr 2022 23:58:06 +0900 Subject: [PATCH] [BOJ] 10825 --- BOJ/10825.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 BOJ/10825.py diff --git a/BOJ/10825.py b/BOJ/10825.py new file mode 100644 index 0000000..7cce587 --- /dev/null +++ b/BOJ/10825.py @@ -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]) \ No newline at end of file