結果

問題 No.480 合計
ユーザー MosyaNoUra
提出日時 2018-12-23 02:37:29
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 284 bytes
コンパイル時間 147 ms
コンパイル使用メモリ 28,672 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-25 10:25:17
合計ジャッジ時間 745 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main(void){
    int N = 0, ans = 0;
    
    printf("数値を入力して下さい。\n");
    scanf("%d",&N);
    
    for (int i = 1; i <= N; i++) {
        ans += i;
    }
    
    printf("出力結果\n");
    printf("%d\n",ans);
    
    return 0;
    
}
0