結果
| 問題 | 
                            No.32 貯金箱の憂鬱
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2016-12-10 13:48:08 | 
| 言語 | Java  (openjdk 23)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 440 bytes | 
| コンパイル時間 | 3,475 ms | 
| コンパイル使用メモリ | 76,788 KB | 
| 実行使用メモリ | 54,356 KB | 
| 最終ジャッジ日時 | 2024-11-29 00:37:00 | 
| 合計ジャッジ時間 | 5,989 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 1 WA * 11 | 
ソースコード
import java.util.*;
public class changeMoney {
	public static void main(String[] args) {
		Scanner sn = new Scanner(System.in);
		int h = sn.nextInt();
		int t = sn.nextInt();
		int w = sn.nextInt();
		int count = h + t + w;
		sn.close();
		
		if(w >= 25){
			w = w/25 + w%25;
			t += w/25;
		}else if(t >= 4){
			t = t/4 + t% 4;
			h += t/4;
		}else if(h >= 10){
			h = h/10 + h%10;
		}else{
			System.out.println(count);
		}
		
	}
}