結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー kotakota
提出日時 2022-05-18 13:30:50
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 653 ms / 2,000 ms
コード長 122 bytes
コンパイル時間 14,610 ms
コンパイル使用メモリ 413,464 KB
実行使用メモリ 85,352 KB
最終ジャッジ日時 2023-10-14 20:39:58
合計ジャッジ時間 24,109 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 307 ms
52,756 KB
testcase_01 AC 311 ms
52,936 KB
testcase_02 AC 301 ms
53,052 KB
testcase_03 AC 301 ms
52,912 KB
testcase_04 AC 305 ms
52,772 KB
testcase_05 AC 317 ms
52,820 KB
testcase_06 AC 342 ms
53,264 KB
testcase_07 AC 450 ms
57,664 KB
testcase_08 AC 485 ms
57,508 KB
testcase_09 AC 506 ms
57,836 KB
testcase_10 AC 623 ms
80,844 KB
testcase_11 AC 565 ms
76,256 KB
testcase_12 AC 584 ms
76,396 KB
testcase_13 AC 578 ms
76,388 KB
testcase_14 AC 573 ms
76,312 KB
testcase_15 AC 580 ms
76,168 KB
testcase_16 AC 653 ms
85,352 KB
testcase_17 AC 305 ms
53,072 KB
testcase_18 AC 300 ms
53,160 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.toLong()}

    println(a.sum())
}
0