結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー Nakamura
提出日時 2023-07-01 13:49:16
言語 JavaScript
(node v23.5.0)
結果
AC  
実行時間 298 ms / 2,000 ms
コード長 308 bytes
コンパイル時間 155 ms
コンパイル使用メモリ 6,692 KB
実行使用メモリ 73,416 KB
最終ジャッジ日時 2024-07-08 00:11:26
合計ジャッジ時間 4,683 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

const main = input => {
	const lines = input.trim().split('\n');
	const N = Number(lines[0].trim());
	const A = lines[1].trim().split(' ').map(n => BigInt(n));
	
	const ans = String(A.reduce((a, b) => a + b));
	console.log(ans);
}

const input = require('fs').readFileSync('/dev/stdin', 'utf8');
main(input);
0