結果

問題 No.1168 Digit Sum Sequence
ユーザー バカらっくバカらっく
提出日時 2022-02-04 10:23:05
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 283 ms / 2,000 ms
コード長 204 bytes
コンパイル時間 12,175 ms
コンパイル使用メモリ 416,632 KB
実行使用メモリ 52,968 KB
最終ジャッジ日時 2023-09-02 03:27:13
合計ジャッジ時間 22,700 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 276 ms
52,256 KB
testcase_01 AC 276 ms
52,428 KB
testcase_02 AC 280 ms
52,308 KB
testcase_03 AC 277 ms
52,404 KB
testcase_04 AC 280 ms
52,352 KB
testcase_05 AC 276 ms
52,184 KB
testcase_06 AC 277 ms
52,252 KB
testcase_07 AC 275 ms
51,936 KB
testcase_08 AC 279 ms
52,672 KB
testcase_09 AC 275 ms
52,968 KB
testcase_10 AC 275 ms
52,936 KB
testcase_11 AC 272 ms
52,312 KB
testcase_12 AC 272 ms
52,264 KB
testcase_13 AC 270 ms
52,076 KB
testcase_14 AC 270 ms
52,376 KB
testcase_15 AC 269 ms
52,392 KB
testcase_16 AC 275 ms
52,624 KB
testcase_17 AC 278 ms
52,272 KB
testcase_18 AC 273 ms
52,340 KB
testcase_19 AC 280 ms
52,272 KB
testcase_20 AC 274 ms
52,336 KB
testcase_21 AC 276 ms
52,200 KB
testcase_22 AC 277 ms
52,280 KB
testcase_23 AC 275 ms
52,236 KB
testcase_24 AC 276 ms
52,252 KB
testcase_25 AC 275 ms
52,744 KB
testcase_26 AC 270 ms
52,504 KB
testcase_27 AC 283 ms
52,264 KB
testcase_28 AC 281 ms
52,004 KB
testcase_29 AC 274 ms
52,400 KB
testcase_30 AC 281 ms
52,316 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

fun main(args: Array<String>) {
    val a = mutableListOf(readLine()!!.toInt())
    for(i in (2..99)) {
        a.add(a.last().toString().map { it.toString().toInt() }.sum())
    }
    println(a.last())
}
0