結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー mukaihajimemukaihajime
提出日時 2019-08-08 22:30:06
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 263 bytes
コンパイル時間 42 ms
コンパイル使用メモリ 6,812 KB
実行使用メモリ 55,616 KB
最終ジャッジ日時 2024-04-21 02:51:18
合計ジャッジ時間 2,792 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
39,296 KB
testcase_01 AC 64 ms
41,468 KB
testcase_02 AC 64 ms
39,296 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 121 ms
49,032 KB
testcase_10 AC 139 ms
53,660 KB
testcase_11 AC 138 ms
53,620 KB
testcase_12 AC 142 ms
53,844 KB
testcase_13 AC 143 ms
54,116 KB
testcase_14 AC 144 ms
54,392 KB
testcase_15 AC 146 ms
54,604 KB
testcase_16 AC 154 ms
55,616 KB
testcase_17 AC 64 ms
39,552 KB
testcase_18 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

const row = require('fs').readFileSync('/dev/stdin', 'utf8').split('\n');
const column = row[1].split(' ');

const element = column.map(e => {
    return parseInt(e);
})

const result = element.reduce((acc, cur) => {
    return acc + cur;
})

console.log(result);
0