結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー arito_asuarito_asu
提出日時 2020-06-13 20:40:10
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 249 bytes
コンパイル時間 301 ms
コンパイル使用メモリ 5,292 KB
実行使用メモリ 60,112 KB
最終ジャッジ日時 2023-09-08 03:24:36
合計ジャッジ時間 5,345 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
42,288 KB
testcase_01 AC 77 ms
42,116 KB
testcase_02 AC 77 ms
42,252 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 154 ms
59,072 KB
testcase_10 AC 247 ms
58,984 KB
testcase_11 AC 249 ms
59,120 KB
testcase_12 AC 255 ms
59,276 KB
testcase_13 AC 259 ms
59,336 KB
testcase_14 AC 236 ms
59,496 KB
testcase_15 AC 239 ms
59,460 KB
testcase_16 AC 247 ms
60,112 KB
testcase_17 AC 75 ms
42,316 KB
testcase_18 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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