結果

問題 No.480 合計
ユーザー mamo_ICE
提出日時 2022-12-04 17:33:58
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 178 bytes
コンパイル時間 383 ms
コンパイル使用メモリ 28,800 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-11 20:12:37
合計ジャッジ時間 1,133 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main(void){
    int n, i;
    int ans = 0;
    
    scanf("%d", &n);
    for(i=1; i<n+1; i++) ans += i;
    
    printf("%d\n", ans);
    
    return 0;
}
0