#include <iostream>
using namespace std;
int n, x;
int main()
{
cin >> n >> x;
int num;
for (int i = 0; i < n; i++)
{
cin >> num;
if (num < x) cout << num << ' ';
}
}
'CS(Computer Science)지식 > [C++][코딩 테스트] 자료구조 및 알고리즘' 카테고리의 다른 글
[C++] 백준 2576번 : 홀수 (0) | 2025.02.23 |
---|---|
[C++] 백준 2490번 : 윷놀이 (0) | 2025.02.22 |
[C++] 백준 15312번: 이름 궁합 (1) | 2024.02.04 |
[C++] 백준 9536번: 여우는 어떻게 울지? (0) | 2024.02.04 |
[C++] 백준 2999번: 비밀 이메일 (0) | 2024.02.04 |