백준 - 10871 X보다 작은 수

AekT·2021년 10월 19일

단계별로풀어보기

목록 보기
2/11
post-thumbnail

백준 10871 X보다 작은 수

문제 : https://www.acmicpc.net/problem/10871

Swift :

var line = readLine()!.split(separator:" ").map{ Int($0)! }
let arr = readLine()!.split(separator:" ").map{Int($0)!}
for i in 0 ... line[0]-1{
	if(arr[i]<line[1]) {
		print("\(arr[i])", terminator:" ")
	}
}
profile
으악

0개의 댓글