結果

問題 No.480 合計
ユーザー asdfghjkl;
提出日時 2019-10-07 00:31:17
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 197 bytes
コンパイル時間 453 ms
コンパイル使用メモリ 28,032 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-11 21:50:50
合計ジャッジ時間 925 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
int main(void){
    int a;
    int count,sum=0;
    scanf("%d",&a);
    for(count=1;count!=a;count++){
        sum=sum+count;
        
    }
    printf("%d",sum);
    return 0;
}
0