알고리즘/배열(array)

백준 10871 python

자코린이 2023. 6. 9. 10:35
listCount, comInt = list(map(int, input().split()))
intList = list(map(int, input().split()))
resultList = [int(x) for x in intList if comInt > x]

resultString = ' '.join(map(str,resultList))
print(resultString)

부족한 부분은 댓글로 알려주시면 감사한 마음으로 수정하겠습니다.