結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー kotakota
提出日時 2022-05-18 11:58:57
言語 Kotlin
(1.9.23)
結果
RE  
実行時間 -
コード長 121 bytes
コンパイル時間 18,706 ms
コンパイル使用メモリ 416,928 KB
実行使用メモリ 85,608 KB
最終ジャッジ日時 2023-10-14 18:52:52
合計ジャッジ時間 27,418 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 274 ms
52,732 KB
testcase_01 AC 277 ms
52,908 KB
testcase_02 AC 272 ms
52,748 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 460 ms
57,756 KB
testcase_10 AC 583 ms
80,616 KB
testcase_11 AC 534 ms
76,200 KB
testcase_12 AC 536 ms
76,336 KB
testcase_13 AC 534 ms
76,408 KB
testcase_14 AC 539 ms
76,276 KB
testcase_15 AC 539 ms
76,368 KB
testcase_16 AC 612 ms
85,608 KB
testcase_17 AC 282 ms
52,756 KB
testcase_18 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:2:9: warning: variable 'n' is never used
    val n = readLine()!!.toInt()
        ^

ソースコード

diff #

fun main() {
    val n = readLine()!!.toInt()
    val a = readLine()!!.split(" ").map{it.toInt()}

    println(a.sum())
}
0