結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
39,296 KB
testcase_01 AC 62 ms
39,296 KB
testcase_02 AC 60 ms
39,040 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 111 ms
49,408 KB
testcase_10 AC 139 ms
53,272 KB
testcase_11 AC 140 ms
53,544 KB
testcase_12 AC 136 ms
53,748 KB
testcase_13 AC 137 ms
54,172 KB
testcase_14 AC 144 ms
54,176 KB
testcase_15 AC 142 ms
54,476 KB
testcase_16 AC 148 ms
55,492 KB
testcase_17 AC 62 ms
39,168 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 Number(e);
})

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

console.log(result);
0