結果
| 問題 | No.32 貯金箱の憂鬱 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2023-04-18 13:07:58 | 
| 言語 | Java (openjdk 23) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 133 ms / 5,000 ms | 
| コード長 | 601 bytes | 
| コンパイル時間 | 2,129 ms | 
| コンパイル使用メモリ | 74,428 KB | 
| 実行使用メモリ | 54,380 KB | 
| 最終ジャッジ日時 | 2024-10-13 11:36:40 | 
| 合計ジャッジ時間 | 4,381 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 12 | 
ソースコード
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        int x = a * 100;
        int y = b * 25;
        int z = c * 1;
        
        int total = x + y + z;
        
        int total1000 = total / 1000; 
        int total100 = total % 1000 / 100;
        int total25 = total % 1000 % 100 / 25;
        int total1 = total % 1000 % 100 % 25 / 1;
        
        System.out.println(total100 + total25 + total1);
    }
}
            
            
            
        