結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー swyroakswyroak
提出日時 2021-07-31 00:03:27
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 381 ms / 3,000 ms
コード長 393 bytes
コンパイル時間 72 ms
コンパイル使用メモリ 5,152 KB
実行使用メモリ 93,420 KB
最終ジャッジ日時 2023-10-14 09:15:56
合計ジャッジ時間 4,913 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
41,776 KB
testcase_01 AC 77 ms
41,780 KB
testcase_02 AC 78 ms
41,936 KB
testcase_03 AC 78 ms
41,812 KB
testcase_04 AC 78 ms
44,012 KB
testcase_05 AC 77 ms
41,904 KB
testcase_06 AC 77 ms
41,896 KB
testcase_07 AC 92 ms
44,088 KB
testcase_08 AC 131 ms
54,264 KB
testcase_09 AC 185 ms
64,824 KB
testcase_10 AC 355 ms
80,556 KB
testcase_11 AC 363 ms
81,228 KB
testcase_12 AC 360 ms
82,788 KB
testcase_13 AC 373 ms
86,088 KB
testcase_14 AC 349 ms
83,836 KB
testcase_15 AC 353 ms
85,448 KB
testcase_16 AC 381 ms
93,420 KB
testcase_17 AC 77 ms
41,956 KB
testcase_18 AC 79 ms
41,996 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

"use strict";
function Main(input) {
    const series = input.split("\n").map(i => BigInt(i)).slice(1);
    const ans = series.reduce((accum, value) => {
        return accum + value;
    }, BigInt(0));
    console.log(String(ans));
}
//テストの入力を受け取る
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
//Main("5\n5\n5\n5");
//# sourceMappingURL=index.js.map
0