728x90
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();
int[] array = new int[N];
for(int i=0; i<N; i++){
array[i] = sc.nextInt();
}
for(int i=0; i<array.length; i++){
if(array[i] < X){
System.out.println(array[i]);
}
}
}
}
728x90
'Coding Practice > BAEKJOON - Java' 카테고리의 다른 글
[BAEKJOON] 2562번 (0) | 2023.04.07 |
---|---|
[BAEKJOON] 10818번 (0) | 2023.04.04 |
[BAEKJOON] 2438번 (0) | 2023.03.27 |
[BAEKJOON] 11022번 (1) | 2023.03.25 |
[BAEKJOON] 25314번 (0) | 2023.03.22 |