✏️백준 10871번 : X보다 작은 수
나의 풀이
1
2
3
4
5
6
7
8
let nx = readLine()!.split(separator: " ").map{ Int(String($0))! }
let nums = readLine()!.split(separator: " ").map{ Int(String($0))! }
for n in nums {
if n < nx[1] {
print(n, terminator: " ")
}
}
(추가예정)