結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
39,296 KB
testcase_01 AC 64 ms
39,168 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 116 ms
49,000 KB
testcase_10 AC 137 ms
53,408 KB
testcase_11 AC 138 ms
53,748 KB
testcase_12 AC 147 ms
53,932 KB
testcase_13 AC 147 ms
54,248 KB
testcase_14 AC 147 ms
54,428 KB
testcase_15 AC 148 ms
54,788 KB
testcase_16 AC 156 ms
55,748 KB
testcase_17 AC 63 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 parseFloat(e);
})

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

console.log(result);
0