結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー firiexpfiriexp
提出日時 2019-04-07 16:27:32
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 476 ms / 3,000 ms
コード長 143 bytes
コンパイル時間 12,045 ms
コンパイル使用メモリ 413,264 KB
実行使用メモリ 62,108 KB
最終ジャッジ日時 2023-08-13 01:38:40
合計ジャッジ時間 20,940 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 287 ms
54,028 KB
testcase_01 AC 288 ms
53,488 KB
testcase_02 AC 289 ms
53,652 KB
testcase_03 AC 294 ms
53,548 KB
testcase_04 AC 296 ms
53,800 KB
testcase_05 AC 297 ms
53,644 KB
testcase_06 AC 338 ms
54,096 KB
testcase_07 AC 401 ms
58,100 KB
testcase_08 AC 464 ms
58,800 KB
testcase_09 AC 476 ms
58,560 KB
testcase_10 AC 445 ms
62,108 KB
testcase_11 AC 450 ms
61,860 KB
testcase_12 AC 444 ms
62,104 KB
testcase_13 AC 447 ms
61,760 KB
testcase_14 AC 450 ms
61,844 KB
testcase_15 AC 444 ms
61,780 KB
testcase_16 AC 463 ms
61,948 KB
testcase_17 AC 289 ms
53,540 KB
testcase_18 AC 288 ms
53,592 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()
    val ans = LongArray(n, { readLine()!!.toLong() }).sum()
    println(ans)
}
0