結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー mahnamahna
提出日時 2022-06-01 19:21:59
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 262 bytes
コンパイル時間 159 ms
コンパイル使用メモリ 5,336 KB
実行使用メモリ 51,652 KB
最終ジャッジ日時 2023-10-21 00:57:14
合計ジャッジ時間 5,714 ms
ジャッジサーバーID
(参考情報)
judge11 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
37,460 KB
testcase_01 AC 66 ms
37,460 KB
testcase_02 AC 66 ms
37,460 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 120 ms
47,872 KB
testcase_10 AC 141 ms
49,916 KB
testcase_11 AC 142 ms
50,128 KB
testcase_12 AC 144 ms
49,936 KB
testcase_13 AC 144 ms
50,144 KB
testcase_14 AC 148 ms
50,360 KB
testcase_15 AC 152 ms
50,592 KB
testcase_16 AC 159 ms
51,652 KB
testcase_17 AC 67 ms
37,516 KB
testcase_18 WA -
権限があれば一括ダウンロードができます

ソースコード

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 => Number(x));

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