Skip to content

Commit 685ff9b

Browse files
committed
[BOJ]스텔라가 치킨을 선물했어요 / 실버 5 / 25분
https://www.acmicpc.net/problem/15905
1 parent 263674e commit 685ff9b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
N = int(input())
2+
3+
arr = []
4+
5+
for _ in range(N):
6+
q, p = list(map(int, input().split()))
7+
arr.append([q, p])
8+
9+
arr.sort(reverse=True)
10+
11+
count = 0
12+
for i in range(5, len(arr)):
13+
if arr[4][0] == arr[i][0]:
14+
count += 1
15+
else:
16+
break
17+
18+
print(count)

0 commit comments

Comments
 (0)