CS (Computer Science)/Algorithm
10871번: X보다 작은 수
SMASMC
2024. 11. 19. 23:34
# 10871번: X보다 작은 수
n, x = map(int, input().split()) # 첫 줄 입력: N, X
a = list(map(int, input().split())) # 두 번째 줄 입력: 수열 A
result = [] # 결과 리스트
for num in a:
if num < x:
result.append(num)
print(" ".join(map(str, result))) # 결과 출력