結果

問題 No.656 ゴルフ
ユーザー ichibanshiboriichibanshibori
提出日時 2018-04-29 19:07:09
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 281 ms / 2,000 ms
コード長 164 bytes
コンパイル時間 12,036 ms
コンパイル使用メモリ 411,972 KB
実行使用メモリ 52,828 KB
最終ジャッジ日時 2023-08-12 23:29:30
合計ジャッジ時間 15,419 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 280 ms
52,540 KB
testcase_01 AC 271 ms
52,556 KB
testcase_02 AC 277 ms
52,536 KB
testcase_03 AC 280 ms
52,688 KB
testcase_04 AC 277 ms
52,716 KB
testcase_05 AC 281 ms
52,516 KB
testcase_06 AC 278 ms
52,684 KB
testcase_07 AC 274 ms
52,552 KB
testcase_08 AC 275 ms
52,676 KB
testcase_09 AC 276 ms
52,828 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args : Array<String>) {
         ^

ソースコード

diff #

fun main(args : Array<String>) {
	val S = readLine() ?: ""
	
	val a = S
	    .map { (it - '0').toInt() }
		.map { if (it == 0) 10 else it }
		.sum()
	
	println(a)
}
0