結果

問題 No.480 合計
ユーザー testtest
提出日時 2022-11-14 16:28:49
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 242 bytes
コンパイル時間 130 ms
コンパイル使用メモリ 5,156 KB
実行使用メモリ 42,284 KB
最終ジャッジ日時 2023-10-13 23:16:45
合計ジャッジ時間 3,754 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
41,904 KB
testcase_01 AC 71 ms
41,948 KB
testcase_02 AC 74 ms
41,912 KB
testcase_03 AC 73 ms
41,944 KB
testcase_04 AC 73 ms
41,916 KB
testcase_05 AC 73 ms
41,944 KB
testcase_06 AC 73 ms
41,772 KB
testcase_07 AC 75 ms
41,836 KB
testcase_08 AC 78 ms
41,748 KB
testcase_09 AC 77 ms
41,848 KB
testcase_10 AC 77 ms
41,800 KB
testcase_11 AC 78 ms
41,892 KB
testcase_12 AC 77 ms
41,772 KB
testcase_13 AC 78 ms
41,944 KB
testcase_14 AC 79 ms
41,804 KB
testcase_15 AC 79 ms
42,284 KB
testcase_16 AC 76 ms
41,948 KB
testcase_17 AC 76 ms
42,112 KB
testcase_18 AC 76 ms
41,896 KB
testcase_19 AC 73 ms
41,880 KB
testcase_20 AC 73 ms
41,776 KB
testcase_21 AC 73 ms
41,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input) {
    let src = input.split("\n");
    let N = parseInt(src[0]);
    let ans = 0;

    for (let i = 1; i <= N; i++) {
        ans += i;
    }
    console.log(ans);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0