結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー NakamuraNakamura
提出日時 2023-07-01 13:49:16
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 365 ms / 2,000 ms
コード長 308 bytes
コンパイル時間 81 ms
コンパイル使用メモリ 5,276 KB
実行使用メモリ 80,492 KB
最終ジャッジ日時 2023-09-22 07:41:40
合計ジャッジ時間 5,793 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
42,152 KB
testcase_01 AC 79 ms
42,096 KB
testcase_02 AC 78 ms
42,204 KB
testcase_03 AC 78 ms
42,040 KB
testcase_04 AC 82 ms
42,196 KB
testcase_05 AC 79 ms
42,200 KB
testcase_06 AC 79 ms
42,460 KB
testcase_07 AC 99 ms
44,376 KB
testcase_08 AC 214 ms
53,820 KB
testcase_09 AC 177 ms
60,548 KB
testcase_10 AC 319 ms
71,704 KB
testcase_11 AC 347 ms
71,820 KB
testcase_12 AC 343 ms
76,988 KB
testcase_13 AC 345 ms
77,528 KB
testcase_14 AC 348 ms
78,232 KB
testcase_15 AC 348 ms
78,440 KB
testcase_16 AC 365 ms
80,492 KB
testcase_17 AC 77 ms
44,220 KB
testcase_18 AC 77 ms
42,180 KB
権限があれば一括ダウンロードができます

ソースコード

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