IT_Baekjoon 단계별로 풀어보기/for문

10871_Python // X보다 작은 수

Pangaea_T 2020. 1. 5. 23:58

 

Python

import sys

n, x = map(int,sys.stdin.readline().split())
l = list(map(int,sys.stdin.readline().split()))
for i in range(n) :
    if(l[i] < x) :
        print(l[i],"",end = '',flush=True)

 

 

 

===