본문 바로가기
알고리즘/백준

백준-10871번(X보다 작은수)-python3

by nyeongha 2023. 11. 23.

백준-10872번(X보다 작은수)-python

a,b=map(int,input().split())
li=[]
li[0:a] = map(int, input().split())
k=[]
for x in li:
    if x<b:
        k.append(x)
    else:
        continue
print(' '.join(map(str,k)))

'알고리즘 > 백준' 카테고리의 다른 글

백준-10952번(A+B-5)-python  (0) 2023.11.23
백준-10951번(A+B-4)-python  (0) 2023.11.23
백준-10818번(최소,최대)-python  (0) 2023.11.23
백준-2577번(숫자의 개수)-python  (0) 2023.11.23
백준-2562번(최댓값)-python  (0) 2023.11.23