結果

問題 No.888 約数の総和
ユーザー zGb6E2aZRz6qwu9zGb6E2aZRz6qwu9
提出日時 2019-09-25 16:24:14
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 229 bytes
コンパイル時間 175 ms
コンパイル使用メモリ 29,312 KB
実行使用メモリ 13,760 KB
最終ジャッジ日時 2024-09-22 08:06:09
合計ジャッジ時間 4,237 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15 WA * 5 TLE * 1 -- * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main(void){
    int a,b=0,c,d=1,f=0;
    scanf("%d",&a);
    while(b<a){
        c=a%d;
        if(c==0){
            f=f+d;
        }
        b++;
        d++;
    }
    printf("%d\n",f);
    return 0;
}
0