結果
| 問題 | No.32 貯金箱の憂鬱 | 
| コンテスト | |
| ユーザー |  fkwnw3_1243 | 
| 提出日時 | 2017-04-23 20:47:59 | 
| 言語 | Java (openjdk 23) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 57 ms / 5,000 ms | 
| コード長 | 622 bytes | 
| コンパイル時間 | 2,183 ms | 
| コンパイル使用メモリ | 74,504 KB | 
| 実行使用メモリ | 50,432 KB | 
| 最終ジャッジ日時 | 2024-07-23 04:28:19 | 
| 合計ジャッジ時間 | 3,405 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 12 | 
ソースコード
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int L = Integer.parseInt(reader.readLine());
        int M = Integer.parseInt(reader.readLine());
        int N = Integer.parseInt(reader.readLine());
        M += N / 25;
        N = N - 25 * (N / 25);
        L += M / 4;
        M = M - 4 * (M / 4);
        int tmp = L / 10;
        L = L - 10*tmp;
        System.out.println(N + M + L);
    }
}
            
            
            
        