파이썬
[백준 10871] X보다 작은수(파이썬)
홍시홍
2020. 8. 19. 22:40
요구사항
X보다 작은 수 찾아 출력하기
참고
print는 기본적으로 문자 출력 후 \n이 된다
제일 끝 문자를 변경 하기 위해서는 print(" ",end='원하는 문자')를 넣어서 변경한다
풀이
a,b= map(int,input().split())
c=list(map(int,input().split()))
for i in range(len(c)):
if b >c[i]:
print(c[i],end=' ')