結果

問題 No.9001 標準入出力の練習問題(テスト用)
ユーザー Takuya ItoTakuya Ito
提出日時 2022-11-04 08:13:16
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 79 ms / 1,000 ms
コード長 289 bytes
コンパイル時間 58 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 42,216 KB
最終ジャッジ日時 2023-09-25 12:51:22
合計ジャッジ時間 1,378 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
42,176 KB
testcase_01 AC 79 ms
42,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input) {
  var data = input.split("\n")

  const nums = data[0].split(' ').map(str => parseInt(str, 10));
  const sum = nums.reduce( (sum, num) => sum + num, 0);

  console.log(sum, data[1]);
}

// Don't edit this line!
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0