結果
| 問題 | No.32 貯金箱の憂鬱 | 
| コンテスト | |
| ユーザー |  takumin0616 | 
| 提出日時 | 2021-03-28 07:43:50 | 
| 言語 | C (gcc 13.3.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 371 bytes | 
| コンパイル時間 | 1,123 ms | 
| コンパイル使用メモリ | 28,416 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-11-29 08:29:24 | 
| 合計ジャッジ時間 | 1,522 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 8 WA * 4 | 
ソースコード
#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;
}
            
            
            
        