結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー firiexpfiriexp
提出日時 2019-04-07 16:30:02
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 459 ms / 3,000 ms
コード長 125 bytes
コンパイル時間 11,826 ms
コンパイル使用メモリ 417,948 KB
実行使用メモリ 62,260 KB
最終ジャッジ日時 2023-08-13 01:39:03
合計ジャッジ時間 19,704 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 281 ms
53,760 KB
testcase_01 AC 280 ms
53,648 KB
testcase_02 AC 284 ms
53,740 KB
testcase_03 AC 280 ms
53,836 KB
testcase_04 AC 282 ms
53,756 KB
testcase_05 AC 286 ms
53,772 KB
testcase_06 AC 321 ms
54,092 KB
testcase_07 AC 388 ms
57,748 KB
testcase_08 AC 450 ms
59,072 KB
testcase_09 AC 459 ms
58,988 KB
testcase_10 AC 433 ms
61,968 KB
testcase_11 AC 432 ms
61,816 KB
testcase_12 AC 435 ms
61,972 KB
testcase_13 AC 441 ms
61,836 KB
testcase_14 AC 435 ms
62,260 KB
testcase_15 AC 437 ms
61,776 KB
testcase_16 AC 443 ms
62,044 KB
testcase_17 AC 280 ms
54,124 KB
testcase_18 AC 281 ms
53,824 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()
    println(LongArray(n, { readLine()!!.toLong() }).sum())
}
0