import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int x = sc.nextInt();
for(int i=0; i<n; i++) {
int num = sc.nextInt();
if (num < x) {
System.out.print(num + " ");
}
}
sc.close();
}
}
'Algorithm > 백준+프로그래머스+SWEA+정올+구름' 카테고리의 다른 글
[Algorithm] 백준 10250 ACM 호텔 (0) | 2021.03.25 |
---|---|
[Algorithm] 백준 2577 숫자의 개수 (0) | 2021.03.25 |
[Algorithm] 백준 2884 알람 시계 (0) | 2021.03.25 |
[Algorithm] 백준 2753 윤년 (0) | 2021.03.25 |
[Algorithm] 백준 2739 구구단 (0) | 2021.03.24 |