結果
| 問題 | 
                            No.32 貯金箱の憂鬱
                             | 
                    
| コンテスト | |
| ユーザー | 
                             toriniku
                         | 
                    
| 提出日時 | 2015-09-09 21:22:26 | 
| 言語 | C90  (gcc 12.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 176 bytes | 
| コンパイル時間 | 164 ms | 
| コンパイル使用メモリ | 20,864 KB | 
| 実行使用メモリ | 6,948 KB | 
| 最終ジャッジ日時 | 2024-07-19 05:05:07 | 
| 合計ジャッジ時間 | 788 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 9 WA * 3 | 
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    4 | scanf("%d %d %d",&a,&b,&c);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
            
            ソースコード
#include<stdio.h>
int main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
while((c-25)>=0){
c-=25;
b++;
}
while((b-4)>=0){
b-=4;
a++;
}
while((a-10)>0) a-=10;
printf("%d",a+b+c);
}
            
            
            
        
            
toriniku