結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー yanaoyanao
提出日時 2020-07-09 15:14:30
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 261 bytes
コンパイル時間 72 ms
コンパイル使用メモリ 5,248 KB
実行使用メモリ 55,512 KB
最終ジャッジ日時 2024-04-16 11:02:33
合計ジャッジ時間 3,075 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
39,040 KB
testcase_01 AC 69 ms
39,040 KB
testcase_02 AC 67 ms
39,168 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 121 ms
48,772 KB
testcase_10 AC 147 ms
53,272 KB
testcase_11 AC 151 ms
53,416 KB
testcase_12 AC 152 ms
53,692 KB
testcase_13 AC 154 ms
53,968 KB
testcase_14 AC 157 ms
54,108 KB
testcase_15 AC 154 ms
54,648 KB
testcase_16 AC 169 ms
55,512 KB
testcase_17 AC 67 ms
38,912 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