結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー masaki kazuemasaki kazue
提出日時 2020-07-09 15:11:46
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 320 bytes
コンパイル時間 153 ms
コンパイル使用メモリ 5,248 KB
実行使用メモリ 51,160 KB
最終ジャッジ日時 2024-04-16 10:53:36
合計ジャッジ時間 4,690 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
38,784 KB
testcase_01 AC 63 ms
38,784 KB
testcase_02 AC 64 ms
38,784 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 114 ms
47,880 KB
testcase_10 AC 114 ms
49,808 KB
testcase_11 AC 114 ms
50,216 KB
testcase_12 AC 116 ms
50,232 KB
testcase_13 AC 120 ms
50,384 KB
testcase_14 AC 118 ms
50,400 KB
testcase_15 AC 118 ms
50,804 KB
testcase_16 AC 125 ms
51,160 KB
testcase_17 AC 65 ms
38,912 KB
testcase_18 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input) {
    const input_data = input.split("\n");
    const N = parseInt(input_data[0]);
    const numbers = input_data[1].split(" ");
    var sum = 0;
    for (i = 0; i < N; i++) {
        sum += parseInt(numbers[i]);
    }
    console.log(sum);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0