From 967497d31fa8c7245b8b0ddfbfd25f684a7d1d9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EC=84=9C=EB=A6=BC?= <40015447+srlee056@users.noreply.github.com> Date: Sat, 30 Mar 2024 19:37:58 +0900 Subject: [PATCH] =?UTF-8?q?[Silver=20V]=20Title:=20=EB=8D=A9=EC=B9=98,=20T?= =?UTF-8?q?ime:=2040=20ms,=20Memory:=2031120=20KB=20-BaekjoonHub?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../7568.\342\200\205\353\215\251\354\271\230/README.md" | 2 +- .../\353\215\251\354\271\230.py" | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git "a/\353\260\261\354\244\200/Silver/7568.\342\200\205\353\215\251\354\271\230/README.md" "b/\353\260\261\354\244\200/Silver/7568.\342\200\205\353\215\251\354\271\230/README.md" index 5132660..c09886c 100644 --- "a/\353\260\261\354\244\200/Silver/7568.\342\200\205\353\215\251\354\271\230/README.md" +++ "b/\353\260\261\354\244\200/Silver/7568.\342\200\205\353\215\251\354\271\230/README.md" @@ -12,7 +12,7 @@ ### 제출 일자 -2024년 3월 30일 19:37:17 +2024년 3월 30일 19:37:49 ### 문제 설명 diff --git "a/\353\260\261\354\244\200/Silver/7568.\342\200\205\353\215\251\354\271\230/\353\215\251\354\271\230.py" "b/\353\260\261\354\244\200/Silver/7568.\342\200\205\353\215\251\354\271\230/\353\215\251\354\271\230.py" index 6dbda98..460ea64 100644 --- "a/\353\260\261\354\244\200/Silver/7568.\342\200\205\353\215\251\354\271\230/\353\215\251\354\271\230.py" +++ "b/\353\260\261\354\244\200/Silver/7568.\342\200\205\353\215\251\354\271\230/\353\215\251\354\271\230.py" @@ -9,11 +9,6 @@ weight, height = map(int, input().split()) wh_list.append((weight, height, i)) -wh_sorted = sorted(wh_list, reverse=True) - -# print(wh_sorted) - - ranks = [1 for _ in range(n)] for i in range(n): @@ -24,5 +19,5 @@ ranks[i1] += 1 elif w1 > w2 and h1 > h2: ranks[i2] += 1 -# print(ranks) + print(" ".join(map(str, ranks)))