結果
| 問題 | No.32 貯金箱の憂鬱 | 
| コンテスト | |
| ユーザー |  maru | 
| 提出日時 | 2016-03-22 17:03:48 | 
| 言語 | Java (openjdk 23) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 134 ms / 5,000 ms | 
| コード長 | 493 bytes | 
| コンパイル時間 | 3,255 ms | 
| コンパイル使用メモリ | 75,540 KB | 
| 実行使用メモリ | 41,612 KB | 
| 最終ジャッジ日時 | 2024-07-23 02:16:59 | 
| 合計ジャッジ時間 | 5,507 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 12 | 
ソースコード
import java.util.Scanner;
public class yukicoder_32 {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		int l = stdIn.nextInt();
		int m = stdIn.nextInt();
		int n = stdIn.nextInt();
		
		int sum = (l * 100) + (m * 25) + (n * 1);
		
		int yen1000 = sum / 1000;
		int yen100 = (sum % 1000) / 100;
		int yen25 = ((sum % 1000) % 100) / 25;
		int yen1 = (((sum % 1000) % 100) % 25);
		
		int coin = yen100 + yen25 + yen1;
		
		System.out.println(coin);
	}
}
            
            
            
        