백준 1110번 - 더하기 사이클 (코틀린)
요 상태에서는 Token 을 쓰는수밖에 없구나ㅇㅅㅇ.. import java.io.*; fun main() = with(BufferedReader(InputStreamReader(System.`in`))) { val writer = BufferedWriter(OutputStreamWriter(System.out)) var number = readLine().toInt() var copy = number var count = 0 do { number = number % 10 * 10 + (number/10 + number%10) %10 //println(number) count++ } while (copy!=number) writer.write(count.toString()) writer.flush() w..
2022.06.06