We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e66b72d commit 414c816Copy full SHA for 414c816
김지호/8주차/260217.py
@@ -0,0 +1,19 @@
1
+# https://www.acmicpc.net/problem/7568
2
+# 덩치, 실버5
3
+
4
+import sys
5
+sys.stdin = open('../../../input.txt', 'r')
6
7
+T = int(input().strip())
8
+people = []
9
10
+for _ in range(T):
11
+ weight, height = map(int, input().strip().split())
12
+ people.append((weight, height))
13
14
+for weight, height in people:
15
+ rank = 1
16
+ for cmp_weight, cmp_height in people:
17
+ if weight < cmp_weight and height < cmp_height:
18
+ rank += 1
19
+ print(rank, end=' ')
0 commit comments