Algorithm/BOJ
[백준/10871] X보다 작은 수 (with 파이썬)
Potato potage
2022. 10. 4. 13:08
반응형
✔ 문제
✔ 풀이
n, x = map(int, input().split())
numbers = list(map(int, input().split()))
for i in numbers:
if i < x:
print(i, end=' ')
✔ 후기
end=' ' 를 사용하면 \n 없이 원하는 변수를 한 줄에 출력할 수 있다.
반응형