結果

問題 No.1168 Digit Sum Sequence
ユーザー face4face4
提出日時 2021-04-10 23:58:31
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 275 ms / 2,000 ms
コード長 124 bytes
コンパイル時間 11,739 ms
コンパイル使用メモリ 409,000 KB
実行使用メモリ 50,804 KB
最終ジャッジ日時 2023-09-09 03:52:25
合計ジャッジ時間 22,485 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 266 ms
50,436 KB
testcase_01 AC 257 ms
50,160 KB
testcase_02 AC 256 ms
50,172 KB
testcase_03 AC 258 ms
50,248 KB
testcase_04 AC 259 ms
50,588 KB
testcase_05 AC 259 ms
50,280 KB
testcase_06 AC 259 ms
50,272 KB
testcase_07 AC 252 ms
50,248 KB
testcase_08 AC 257 ms
50,348 KB
testcase_09 AC 259 ms
50,520 KB
testcase_10 AC 262 ms
50,312 KB
testcase_11 AC 260 ms
50,164 KB
testcase_12 AC 269 ms
50,160 KB
testcase_13 AC 259 ms
50,276 KB
testcase_14 AC 259 ms
50,188 KB
testcase_15 AC 264 ms
50,264 KB
testcase_16 AC 266 ms
50,548 KB
testcase_17 AC 266 ms
50,320 KB
testcase_18 AC 268 ms
50,392 KB
testcase_19 AC 267 ms
50,264 KB
testcase_20 AC 267 ms
50,324 KB
testcase_21 AC 262 ms
50,176 KB
testcase_22 AC 264 ms
50,224 KB
testcase_23 AC 268 ms
50,168 KB
testcase_24 AC 264 ms
50,256 KB
testcase_25 AC 269 ms
50,384 KB
testcase_26 AC 264 ms
50,204 KB
testcase_27 AC 267 ms
50,292 KB
testcase_28 AC 270 ms
50,492 KB
testcase_29 AC 273 ms
50,420 KB
testcase_30 AC 275 ms
50,804 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

fun main() {
    var n = readLine()!!.toInt()
    repeat(100){
        n = n.toString().sumOf{it-'0'}
    }
    println(n)
}
0