結果

問題 No.32 貯金箱の憂鬱
ユーザー aim_cpoaim_cpo
提出日時 2019-04-18 16:22:00
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 5,000 ms
コード長 410 bytes
コンパイル時間 3,095 ms
コンパイル使用メモリ 71,628 KB
実行使用メモリ 56,236 KB
最終ジャッジ日時 2023-09-30 13:30:40
合計ジャッジ時間 5,284 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
56,104 KB
testcase_01 AC 118 ms
56,116 KB
testcase_02 AC 120 ms
55,908 KB
testcase_03 AC 118 ms
55,864 KB
testcase_04 AC 118 ms
55,528 KB
testcase_05 AC 119 ms
55,892 KB
testcase_06 AC 118 ms
55,860 KB
testcase_07 AC 119 ms
56,232 KB
testcase_08 AC 120 ms
56,016 KB
testcase_09 AC 119 ms
55,864 KB
testcase_10 AC 118 ms
56,236 KB
testcase_11 AC 121 ms
55,852 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class TaskK {
    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        int a = cin.nextInt();
        int b = cin.nextInt();
        int c = cin.nextInt();
        int d = 0;
        b += c / 25;
        c %= 25;
        a += b / 4;
        b %= 4;
        d += a / 10;
        a %= 10;
        System.out.println(a + b + c);
    }
}
0