結果

問題 No.656 ゴルフ
ユーザー ichibanshiboriichibanshibori
提出日時 2018-04-29 19:07:09
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 285 ms / 2,000 ms
コード長 164 bytes
コンパイル時間 9,239 ms
コンパイル使用メモリ 431,356 KB
実行使用メモリ 56,840 KB
最終ジャッジ日時 2024-04-30 18:25:59
合計ジャッジ時間 12,709 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 263 ms
56,792 KB
testcase_01 AC 269 ms
56,824 KB
testcase_02 AC 270 ms
56,804 KB
testcase_03 AC 259 ms
56,780 KB
testcase_04 AC 263 ms
56,660 KB
testcase_05 AC 261 ms
56,760 KB
testcase_06 AC 274 ms
56,748 KB
testcase_07 AC 285 ms
56,680 KB
testcase_08 AC 265 ms
56,708 KB
testcase_09 AC 261 ms
56,840 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