結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 263 ms
50,308 KB
testcase_01 AC 262 ms
52,268 KB
testcase_02 AC 264 ms
50,208 KB
testcase_03 AC 264 ms
50,412 KB
testcase_04 AC 264 ms
50,508 KB
testcase_05 AC 267 ms
50,384 KB
testcase_06 AC 304 ms
50,696 KB
testcase_07 AC 367 ms
54,360 KB
testcase_08 AC 395 ms
56,280 KB
testcase_09 AC 436 ms
57,000 KB
testcase_10 AC 453 ms
57,020 KB
testcase_11 AC 450 ms
57,120 KB
testcase_12 AC 452 ms
56,996 KB
testcase_13 AC 455 ms
57,076 KB
testcase_14 AC 449 ms
57,236 KB
testcase_15 AC 446 ms
56,980 KB
testcase_16 AC 457 ms
56,872 KB
testcase_17 AC 264 ms
50,172 KB
testcase_18 AC 266 ms
50,520 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 = 0L
    for (i in 0 until n){
        ans += readLine()!!.toLong()
    }
    println(ans)
}
0