728x90
🤖
문제
https://www.acmicpc.net/problem/10871
풀이
const fs = require("fs");
const input = fs.readFileSync("/dev/stdin").toString().split("\n");
const N = parseInt(input[0].split(" ")[0]);
const X = parseInt(input[0].split(" ")[1]);
const A = input[1].split(" ");
let result = [];
for (let i = 0; i < N; i++) {
if (A[i] < X) {
result.push(A[i]);
}
}
console.log(result.join(" "));
728x90
'유물 > └ 백준' 카테고리의 다른 글
<백준> 10951번: A+B - 4 (0) | 2022.01.04 |
---|---|
<백준> 10952번: A+B - 5 (0) | 2022.01.04 |
<백준> 2439번: 별 찍기 - 2 (0) | 2022.01.03 |
<백준> 2438번: 별 찍기 - 1 (0) | 2022.01.02 |
<백준> 11022번: A+B - 8 (0) | 2022.01.01 |