結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー toshiro_yanagitoshiro_yanagi
提出日時 2018-10-06 17:00:27
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 402 ms / 3,000 ms
コード長 181 bytes
コンパイル時間 9,062 ms
コンパイル使用メモリ 427,672 KB
実行使用メモリ 80,832 KB
最終ジャッジ日時 2024-04-30 19:24:40
合計ジャッジ時間 16,575 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 253 ms
54,244 KB
testcase_01 AC 253 ms
54,148 KB
testcase_02 AC 256 ms
54,136 KB
testcase_03 AC 250 ms
54,236 KB
testcase_04 AC 254 ms
54,192 KB
testcase_05 AC 265 ms
54,292 KB
testcase_06 AC 280 ms
54,368 KB
testcase_07 AC 344 ms
58,464 KB
testcase_08 AC 364 ms
60,504 KB
testcase_09 AC 366 ms
62,432 KB
testcase_10 AC 369 ms
76,692 KB
testcase_11 AC 378 ms
76,744 KB
testcase_12 AC 375 ms
76,620 KB
testcase_13 AC 371 ms
76,624 KB
testcase_14 AC 392 ms
76,732 KB
testcase_15 AC 400 ms
78,680 KB
testcase_16 AC 402 ms
80,832 KB
testcase_17 AC 266 ms
54,220 KB
testcase_18 AC 273 ms
54,160 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

fun main(args: Array<String>) {
    val N = readLine()!!.toInt()
    var ans = 0.toLong()

    for (i in 0 until N) {
        ans += readLine()!!.toLong()
    }

    println(ans)
}
0