結果

問題 No.32 貯金箱の憂鬱
ユーザー face4face4
提出日時 2018-04-09 17:48:27
言語 Java21
(openjdk 21)
結果
AC  
実行時間 43 ms / 5,000 ms
コード長 573 bytes
コンパイル時間 1,997 ms
コンパイル使用メモリ 72,036 KB
実行使用メモリ 49,764 KB
最終ジャッジ日時 2023-09-30 13:09:05
合計ジャッジ時間 3,169 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
49,324 KB
testcase_01 AC 43 ms
49,764 KB
testcase_02 AC 41 ms
49,576 KB
testcase_03 AC 42 ms
49,424 KB
testcase_04 AC 41 ms
49,536 KB
testcase_05 AC 42 ms
49,328 KB
testcase_06 AC 43 ms
49,172 KB
testcase_07 AC 42 ms
49,264 KB
testcase_08 AC 43 ms
47,220 KB
testcase_09 AC 42 ms
49,276 KB
testcase_10 AC 43 ms
49,508 KB
testcase_11 AC 43 ms
49,224 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;

class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int l = Integer.parseInt(br.readLine());
        int m = Integer.parseInt(br.readLine());
        int n = Integer.parseInt(br.readLine());
        
        m += (n/25);
        n -= (n/25) * 25;

        l += (m/4);
        m -= (m/4) * 4;

        l -= (l/10) * 10;

        System.out.println((l+m+n));
    }
}  
0