[백준/코틀린] 1259번: 팰린드롬수
브론즈 1
링크
풀이
생략
코드
1
2
3
4
5
6
7
8
9
10
11
12
fun main() {
while (true) {
val num = readln()
.also { if (it == "0") return }
println(
if (num == num.reversed()) "yes"
else "no"
)
}
}
This post is licensed under CC BY 4.0 by the author.