結果

問題 No.32 貯金箱の憂鬱
ユーザー n_gojon_gojo
提出日時 2020-04-09 18:26:06
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 5,000 ms
コード長 521 bytes
コンパイル時間 3,514 ms
コンパイル使用メモリ 71,416 KB
実行使用メモリ 56,160 KB
最終ジャッジ日時 2023-09-30 14:03:40
合計ジャッジ時間 5,289 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,936 KB
testcase_01 AC 118 ms
55,876 KB
testcase_02 AC 119 ms
53,980 KB
testcase_03 AC 119 ms
55,408 KB
testcase_04 AC 122 ms
55,888 KB
testcase_05 AC 118 ms
56,160 KB
testcase_06 AC 116 ms
55,856 KB
testcase_07 AC 116 ms
55,888 KB
testcase_08 AC 117 ms
55,756 KB
testcase_09 AC 120 ms
53,668 KB
testcase_10 AC 116 ms
55,784 KB
testcase_11 AC 117 ms
55,932 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No32 {
    public static void main(String[] args) {
        // 標準入力から読み込む際に、Scannerオブジェクトを使う。
        Scanner sc = new Scanner(System.in);

        // int 1つ分を読み込む
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();

        int ans = 0;

        ans += c%25;
        b += c/25;
        ans += b%4;
        a += b/4;
        ans += a%10;

        System.out.println(ans);

    }
}
0