MapleStory Finger Point

๐Ÿƒ‍โ™‚๏ธBaekjoon/Python

#10871 - python

HYEJU01 2024. 4. 13. 01:49
N,X = map(int,input().split())
A = list(map(int,input().split()))

for i in range(N):
    if (A[i]<X):
        print(A[i],end=' ')

 

i ๋ถ€ํ„ฐ N ๊นŒ์ง€ ๋Œ๋ ค์„œ X๋ณด๋‹ค ์ž‘์„ ๋•Œ๋งŒ ์ถœ๋ ฅํ•˜๊ฒŒ ํ•œ๋‹ค.

 

- ํŒŒ์ด์ฌ ๊ฐ’ ์ถœ๋ ฅ ํ˜•์‹ ๋ฐ”๊พธ๊ธฐ  (๋Œ€๊ด„ํ˜ธ ์—†์ด)'

for ๋ฌธ์„ ์ด์šฉํ•ด์„œ  print(list[i],end=" ") ์ถœ๋ ฅํ•ด์ฃผ๊ธฐ