Skip to content

Commit f7c268d

Browse files
committed
1 parent cee30a2 commit f7c268d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Hongjoo/lv0/숫자제거배열.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
#1. input
3+
n,k = input().split()
4+
a = list(input().split())
5+
6+
# n,k = "5 2".split()
7+
# a = list("10 20 22 12 11".split())
8+
count = 0
9+
for i in range(len(a)):
10+
if k in a[i]:
11+
count+=1
12+
13+
answer = int(n) - count
14+
print(f"{answer}")
15+
16+
17+
# print ("Hello Goorm! Your input is " + user_input)

0 commit comments

Comments
 (0)