Study/BAEKJOON
[BAEKJOON] 10871번 : X보다 작은 수
1nfra
2020. 9. 14. 10:15
728x90
1 2 3 4 5 6 7 8 9 10 11 12 13 | #include<stdio.h> int main() { int N, X, input; scanf("%d %d", &N, &X); for (int i = 0; i < N; i++) { scanf("%d", &input); if (X > input) printf("%d ", input); } } | cs |
728x90