본문 바로가기
python-algorithm

[백준] 10871

by 무적김두칠 2020. 12. 28.

1
2
3
4
5
6
a,b=map(int, input().split())
tmp=list(map(int,input().split()))
ans=[]
for i in range(a):
    if tmp[i]<b: ans.append(tmp[i])
print(*ans)
cs
반응형

'python-algorithm' 카테고리의 다른 글

[백준] 10990  (0) 2020.12.28
[백준] 10951  (0) 2020.12.28
[백준] 10833  (0) 2020.12.28
[백준] 10824  (0) 2020.12.28
[백준] 10818  (0) 2020.12.28

댓글