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