結果

問題 No.480 合計
ユーザー 山口太輔
提出日時 2020-08-24 11:47:24
言語 JavaScript
(node v23.5.0)
結果
WA  
実行時間 -
コード長 367 bytes
コンパイル時間 69 ms
コンパイル使用メモリ 6,816 KB
実行使用メモリ 41,456 KB
最終ジャッジ日時 2024-11-06 10:02:33
合計ジャッジ時間 2,548 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input) {
    // inputにはすべての入力の文字列が与えられるので必要に応じて input.split("\n") などで分割する。

    const N = input[0];
    
    let cal = 0;
    for(let i = 1; i <= N; i++) {
        cal += i;
    }
    console.log(cal);
}

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