Skip to content

Commit

Permalink
[Silver V] Title: 덩치, Time: 40 ms, Memory: 31120 KB -BaekjoonHub
Browse files Browse the repository at this point in the history
  • Loading branch information
srlee056 committed Mar 30, 2024
1 parent 48f035b commit 967497d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion 백준/Silver/7568. 덩치/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

### 제출 일자

2024년 3월 30일 19:37:17
2024년 3월 30일 19:37:49

### 문제 설명

Expand Down
7 changes: 1 addition & 6 deletions 백준/Silver/7568. 덩치/덩치.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -24,5 +19,5 @@
ranks[i1] += 1
elif w1 > w2 and h1 > h2:
ranks[i2] += 1
# print(ranks)

print(" ".join(map(str, ranks)))

0 comments on commit 967497d

Please sign in to comment.