結果
| 問題 | No.32 貯金箱の憂鬱 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2017-09-12 14:05:34 | 
| 言語 | Java (openjdk 23) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 140 ms / 5,000 ms | 
| コード長 | 570 bytes | 
| コンパイル時間 | 2,659 ms | 
| コンパイル使用メモリ | 74,660 KB | 
| 実行使用メモリ | 54,544 KB | 
| 最終ジャッジ日時 | 2024-07-23 06:44:09 | 
| 合計ジャッジ時間 | 5,225 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 L = sc.nextInt();
        int M = sc.nextInt();
        int N = sc.nextInt();
        
        int add_M = (int)N/25;
        int lost_N = N - add_M*25;
        M = M + add_M;
        
        int add_L = (int)M/4;
        int lost_M = M - add_L*4;
        L = L + add_L;
        
        int add_O = (int)L/10;
        int lost_L = L - add_O*10;
        
        System.out.println(lost_N+lost_M+lost_L);
    }
}
            
            
            
        