結果

問題 No.480 合計
ユーザー ho
提出日時 2020-07-10 18:41:03
言語 TypeScript
(5.7.2)
結果
AC  
実行時間 64 ms / 2,000 ms
コード長 270 bytes
コンパイル時間 7,682 ms
コンパイル使用メモリ 227,692 KB
実行使用メモリ 39,552 KB
最終ジャッジ日時 2024-12-31 16:14:00
合計ジャッジ時間 9,901 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input) {
    const data = input.split("\n")
    const n: number = Number(data[0]);
    let result = 0;
    for (let i = 1; i <= n; i++) {
        result = result + i;
    }
    console.log(result);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0