結果

問題 No.32 貯金箱の憂鬱
ユーザー takumin0616takumin0616
提出日時 2021-03-28 07:51:06
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 369 bytes
コンパイル時間 123 ms
コンパイル使用メモリ 27,936 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-19 15:03:35
合計ジャッジ時間 791 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 0 ms
4,376 KB
testcase_02 WA -
testcase_03 AC 0 ms
4,380 KB
testcase_04 AC 0 ms
4,384 KB
testcase_05 AC 0 ms
4,380 KB
testcase_06 AC 1 ms
4,376 KB
testcase_07 AC 1 ms
4,380 KB
testcase_08 AC 1 ms
4,380 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>
int main(){
    int a,b,c,x;
    int m=0;
    scanf("%d%d%d", &a, &b, &c);
    x=a*100;
    x+=b*25;
    x+=c;
    while(x > 1000){
        x-=1000;
    }
    while(x > 100){
        x-=100;
        m++;
    }
    while(x > 25){
        x-=25;
        m++;
    }
    while(x > 0){
        x-=1;
        m++;
    }
    printf("%d\n",m);
    return 0;
}
0