結果
| 問題 | 
                            No.480 合計
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2020-07-23 01:32:24 | 
| 言語 | JavaScript  (node v23.5.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 69 ms / 2,000 ms | 
| コード長 | 360 bytes | 
| コンパイル時間 | 50 ms | 
| コンパイル使用メモリ | 6,944 KB | 
| 実行使用メモリ | 39,424 KB | 
| 最終ジャッジ日時 | 2024-06-23 04:29:49 | 
| 合計ジャッジ時間 | 2,522 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 22 | 
ソースコード
function main(input = "") {
  if (!input) throw Error;
  let sum = 0;
  for (let i = 1; i <= parseInt(input); i++) {
    sum += i;
  }
  return sum;
}
const { readFileSync, existsSync } = require("fs");
const stdin = "/dev/stdin";
if (existsSync(stdin)) {
  const input = readFileSync(stdin, "utf8");
  console.log(main(input));
}
module.exports = main;