結果

問題 No.480 合計
ユーザー intercept6intercept6
提出日時 2020-07-02 15:29:04
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 81 ms / 2,000 ms
コード長 235 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 5,152 KB
実行使用メモリ 42,356 KB
最終ジャッジ日時 2023-10-13 03:21:38
合計ジャッジ時間 2,739 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
42,240 KB
testcase_01 AC 77 ms
42,184 KB
testcase_02 AC 78 ms
42,348 KB
testcase_03 AC 77 ms
42,120 KB
testcase_04 AC 77 ms
42,144 KB
testcase_05 AC 76 ms
42,208 KB
testcase_06 AC 79 ms
42,268 KB
testcase_07 AC 78 ms
42,096 KB
testcase_08 AC 78 ms
42,148 KB
testcase_09 AC 78 ms
42,304 KB
testcase_10 AC 77 ms
42,144 KB
testcase_11 AC 76 ms
42,312 KB
testcase_12 AC 77 ms
42,128 KB
testcase_13 AC 77 ms
42,256 KB
testcase_14 AC 78 ms
42,240 KB
testcase_15 AC 77 ms
42,188 KB
testcase_16 AC 77 ms
42,332 KB
testcase_17 AC 77 ms
42,148 KB
testcase_18 AC 77 ms
42,112 KB
testcase_19 AC 77 ms
42,148 KB
testcase_20 AC 77 ms
42,112 KB
testcase_21 AC 78 ms
42,356 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input) {
  const num = Number(input.split("\n")[0]);

  var res = 0;
  for (i = 1; i <= num; i++) {
    res += i
  }

  console.log(res);
}

// Don't edit this line!
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0