結果

問題 No.480 合計
ユーザー NakamuraNakamura
提出日時 2023-07-01 13:25:37
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 187 bytes
コンパイル時間 132 ms
コンパイル使用メモリ 5,332 KB
実行使用メモリ 42,356 KB
最終ジャッジ日時 2023-09-22 07:21:22
合計ジャッジ時間 3,393 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
42,336 KB
testcase_01 AC 80 ms
42,260 KB
testcase_02 AC 84 ms
42,160 KB
testcase_03 AC 80 ms
42,156 KB
testcase_04 AC 80 ms
42,124 KB
testcase_05 AC 80 ms
42,148 KB
testcase_06 AC 84 ms
42,172 KB
testcase_07 AC 79 ms
42,264 KB
testcase_08 AC 80 ms
42,196 KB
testcase_09 AC 80 ms
42,356 KB
testcase_10 AC 81 ms
42,352 KB
testcase_11 AC 78 ms
42,144 KB
testcase_12 AC 80 ms
42,228 KB
testcase_13 AC 79 ms
42,356 KB
testcase_14 AC 79 ms
42,132 KB
testcase_15 AC 78 ms
42,228 KB
testcase_16 AC 79 ms
42,252 KB
testcase_17 AC 78 ms
42,132 KB
testcase_18 AC 80 ms
42,228 KB
testcase_19 AC 81 ms
42,332 KB
testcase_20 AC 80 ms
42,244 KB
testcase_21 AC 79 ms
42,256 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

const main = input => {
	const N = Number(input.trim());
	
	const ans = N * (N + 1) / 2;
	console.log(ans);
}

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