Skip to content

Commit 95fbe27

Browse files
committed
[#5] Feat: Add 개수 세기
1 parent 76f7ff2 commit 95fbe27

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

10807.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# 개수 세기
2+
3+
N = int(input())
4+
numbers = list(map(int, input().split(' ')))
5+
v = int(input())
6+
count = 0
7+
8+
for number in numbers:
9+
if (number == v):
10+
count += 1
11+
12+
print(count)

0 commit comments

Comments
 (0)