結果

問題 No.656 ゴルフ
ユーザー KisaragiEffectiveKisaragiEffective
提出日時 2019-12-11 09:38:32
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 280 ms / 2,000 ms
コード長 118 bytes
コンパイル時間 12,763 ms
コンパイル使用メモリ 410,520 KB
実行使用メモリ 52,724 KB
最終ジャッジ日時 2023-09-06 12:58:26
合計ジャッジ時間 16,632 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 278 ms
52,460 KB
testcase_01 AC 273 ms
52,588 KB
testcase_02 AC 274 ms
52,444 KB
testcase_03 AC 276 ms
52,500 KB
testcase_04 AC 280 ms
52,608 KB
testcase_05 AC 278 ms
52,516 KB
testcase_06 AC 277 ms
52,548 KB
testcase_07 AC 279 ms
52,592 KB
testcase_08 AC 275 ms
52,596 KB
testcase_09 AC 274 ms
52,724 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

fun main() {
    val c = readLine()!!.toCharArray().map { it - '0' }
    println(c.sum() + c.count { it == 0 } * 10)
}
0