結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー mukaihajime
提出日時 2019-08-08 22:23:29
言語 JavaScript
(node v23.5.0)
結果
RE  
実行時間 -
コード長 308 bytes
コンパイル時間 173 ms
コンパイル使用メモリ 6,688 KB
実行使用メモリ 39,936 KB
最終ジャッジ日時 2024-10-13 01:15:25
合計ジャッジ時間 2,094 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 4
other RE * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

const BigInteger = require('big-integer')

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

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

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

console.log(result);
0