結果
| 問題 | 
                            No.32 貯金箱の憂鬱
                             | 
                    
| コンテスト | |
| ユーザー | 
                             takumin0616
                         | 
                    
| 提出日時 | 2021-03-28 07:35:00 | 
| 言語 | C  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 380 bytes | 
| コンパイル時間 | 1,370 ms | 
| コンパイル使用メモリ | 28,928 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-11-29 08:29:19 | 
| 合計ジャッジ時間 | 2,178 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 8 WA * 4 | 
ソースコード
#include<stdio.h>
int main(){
    int a,b,c,x;
    int m=0;
    scanf("%d",&a);
    x=a*100;
    scanf("%d",&b);
    x+=b*25;
    scanf("%d",&c);
    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",m);
}
            
            
            
        
            
takumin0616