← Back to List

10871번: X보다 작은 수 ↗

Solutions

C++14
182 B | 182 chars
#include <iostream>
using namespace std;
int N,K,ar[11000];
int main()
{
	cin>>N>>K;
	for(int x=0; x<N; x++)cin>>ar[x];
	for(int x=0; x<N; x++)
	{
		if(ar[x]<K)cout<<ar[x]<<" ";
	}
}