結果

問題 No.480 合計
ユーザー intercept6
提出日時 2020-07-02 15:27:09
言語 JavaScript
(node v23.5.0)
結果
WA  
実行時間 -
コード長 252 bytes
コンパイル時間 196 ms
コンパイル使用メモリ 5,248 KB
実行使用メモリ 39,424 KB
最終ジャッジ日時 2024-09-15 01:01:42
合計ジャッジ時間 2,372 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input) {
    const num = input.split("\n");
    console.log(num);
    
  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