結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー mahna
提出日時 2022-06-01 19:49:57
言語 JavaScript
(node v23.5.0)
結果
AC  
実行時間 334 ms / 2,000 ms
コード長 270 bytes
コンパイル時間 232 ms
コンパイル使用メモリ 5,632 KB
実行使用メモリ 73,432 KB
最終ジャッジ日時 2024-09-21 01:43:30
合計ジャッジ時間 3,959 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

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