結果

問題 No.480 合計
ユーザー korou
提出日時 2024-12-05 14:19:17
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 139 bytes
コンパイル時間 1,221 ms
コンパイル使用メモリ 25,856 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-05 14:19:19
合計ジャッジ時間 1,270 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main(void) {
    int n, s;
    scanf("%d", &n);

    s = (n * (n + 1)) / 2;
    printf("%d\n", s);
    return 0;
}
0