結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー f Oxf Ox
提出日時 2021-04-11 17:21:37
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 240 bytes
コンパイル時間 52 ms
コンパイル使用メモリ 5,336 KB
実行使用メモリ 52,196 KB
最終ジャッジ日時 2023-09-09 19:28:11
合計ジャッジ時間 3,508 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
41,820 KB
testcase_01 AC 76 ms
41,936 KB
testcase_02 AC 76 ms
42,088 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 118 ms
48,908 KB
testcase_10 AC 131 ms
48,740 KB
testcase_11 AC 134 ms
48,660 KB
testcase_12 AC 136 ms
48,896 KB
testcase_13 AC 134 ms
49,304 KB
testcase_14 AC 136 ms
49,088 KB
testcase_15 AC 135 ms
49,260 KB
testcase_16 AC 146 ms
50,100 KB
testcase_17 AC 76 ms
42,096 KB
testcase_18 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input) {
  const data = input.split("\n");
  const N = data[0];
  const arrayNums = data[1].split(" ");

  console.log(arrayNums.reduce((a,b) => Number(a)+Number(b)));
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0