結果

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

ソースコード

diff #

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