結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー yanaoyanao
提出日時 2020-07-09 15:28:21
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 228 ms / 3,000 ms
コード長 194 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 5,248 KB
実行使用メモリ 59,736 KB
最終ジャッジ日時 2024-04-16 11:43:26
合計ジャッジ時間 3,389 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
38,912 KB
testcase_01 AC 63 ms
39,296 KB
testcase_02 AC 62 ms
39,040 KB
testcase_03 AC 62 ms
39,040 KB
testcase_04 AC 64 ms
39,168 KB
testcase_05 AC 63 ms
39,168 KB
testcase_06 AC 64 ms
39,168 KB
testcase_07 AC 74 ms
41,216 KB
testcase_08 AC 106 ms
51,176 KB
testcase_09 AC 143 ms
56,168 KB
testcase_10 AC 210 ms
54,432 KB
testcase_11 AC 218 ms
58,552 KB
testcase_12 AC 222 ms
58,832 KB
testcase_13 AC 228 ms
58,856 KB
testcase_14 AC 201 ms
54,784 KB
testcase_15 AC 202 ms
54,932 KB
testcase_16 AC 214 ms
59,736 KB
testcase_17 AC 63 ms
39,168 KB
testcase_18 AC 64 ms
39,296 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

let sum = BigInt(0);
for (i = 1; i < row.length - 1; i++) {
    sum = sum + BigInt(row[i]);
}
console.log(String(sum));
0