MapleStory Finger Point

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

[10871/JAVA] X๋ณด๋‹ค ์ž‘์€ ์ˆ˜

HYEJU01 2021. 9. 7. 01:17
import java.util.Scanner;

public class Main {
    public static void main(String args[]) {
        Scanner in = new Scanner(System.in);
        int N = in.nextInt();
        int X = in.nextInt();
        
        int a[]  = new int[N];
        
        for (int i = 0; i < N; i++) {
             a[i] = in.nextInt();
        }
        
         for (int i = 0; i < N; i++) {
            if(a[i] < X) {
                System.out.printf(a[i] + " ");
            }
        }
       in.close();
        
 
}
}