[BOJ] 10871 X보다 작은 수

Time Lapse : 50sec

10871.c

1
2
3
4
5
6
7
8
9
#include <stdio.h>
int main(int argc, char** argv){
int N, X, n;
scanf("%d %d", &N,&X);
for (int i = 0; i < N; i++) {
scanf("%d", &n);
if (n < X) printf("%d ", n);
}
}
Author: Song Hayoung
Link: https://songhayoung.github.io/2020/07/23/PS/BOJ/10871/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.