📝 코테/BOJ
[Swift] 백준1259
JerryiOS
2023. 3. 23. 11:32
import Foundation
var input = ""
while true {
input = readLine()!
if input == "0" {
break
}
print(input == String(input.reversed()) ? "yes" : "no")
}
반응형