結果

問題 No.656 ゴルフ
ユーザー KisaragiEffectiveKisaragiEffective
提出日時 2019-12-11 09:38:32
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 294 ms / 2,000 ms
コード長 118 bytes
コンパイル時間 11,978 ms
コンパイル使用メモリ 435,300 KB
実行使用メモリ 56,836 KB
最終ジャッジ日時 2024-06-24 07:35:11
合計ジャッジ時間 14,669 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 285 ms
56,676 KB
testcase_01 AC 294 ms
56,780 KB
testcase_02 AC 289 ms
56,624 KB
testcase_03 AC 289 ms
56,636 KB
testcase_04 AC 291 ms
56,680 KB
testcase_05 AC 292 ms
56,772 KB
testcase_06 AC 291 ms
56,836 KB
testcase_07 AC 292 ms
56,728 KB
testcase_08 AC 292 ms
56,624 KB
testcase_09 AC 292 ms
56,672 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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