結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー mahnamahna
提出日時 2022-06-01 19:49:57
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 357 ms / 2,000 ms
コード長 270 bytes
コンパイル時間 58 ms
コンパイル使用メモリ 5,152 KB
実行使用メモリ 69,028 KB
最終ジャッジ日時 2023-10-21 00:57:26
合計ジャッジ時間 5,174 ms
ジャッジサーバーID
(参考情報)
judge10 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
37,500 KB
testcase_01 AC 68 ms
37,500 KB
testcase_02 AC 69 ms
37,500 KB
testcase_03 AC 69 ms
37,500 KB
testcase_04 AC 68 ms
37,500 KB
testcase_05 AC 69 ms
37,468 KB
testcase_06 AC 70 ms
37,556 KB
testcase_07 AC 107 ms
42,820 KB
testcase_08 AC 119 ms
48,400 KB
testcase_09 AC 164 ms
59,012 KB
testcase_10 AC 313 ms
65,388 KB
testcase_11 AC 316 ms
65,796 KB
testcase_12 AC 312 ms
65,720 KB
testcase_13 AC 315 ms
66,124 KB
testcase_14 AC 322 ms
66,620 KB
testcase_15 AC 329 ms
66,952 KB
testcase_16 AC 357 ms
69,028 KB
testcase_17 AC 68 ms
37,556 KB
testcase_18 AC 68 ms
37,556 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

const fs = require("fs");
const input = fs.readFileSync("/dev/stdin", "utf-8").trim();
const lines = input.split("\n");


const n = Number(lines[0]);
let arr = lines[1].split(" ").map( x => BigInt(x));

const ans = arr.reduce ( (a,b) => a + b);
console.log(String(ans));
0