結果

問題 No.32 貯金箱の憂鬱
ユーザー tentententen
提出日時 2020-11-10 10:09:03
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 5,000 ms
コード長 415 bytes
コンパイル時間 2,000 ms
コンパイル使用メモリ 71,400 KB
実行使用メモリ 56,320 KB
最終ジャッジ日時 2023-09-30 14:02:18
合計ジャッジ時間 4,066 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
56,320 KB
testcase_01 AC 120 ms
55,688 KB
testcase_02 AC 120 ms
55,456 KB
testcase_03 AC 118 ms
55,448 KB
testcase_04 AC 122 ms
55,940 KB
testcase_05 AC 121 ms
55,908 KB
testcase_06 AC 120 ms
55,456 KB
testcase_07 AC 120 ms
56,020 KB
testcase_08 AC 121 ms
56,004 KB
testcase_09 AC 119 ms
55,836 KB
testcase_10 AC 120 ms
55,724 KB
testcase_11 AC 119 ms
56,248 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int hundred = sc.nextInt();
        int quater = sc.nextInt();
        int one = sc.nextInt();
        quater += one / 25;
        one %= 25;
        hundred += quater / 4;
        quater %= 4;
        hundred %= 10;
        System.out.println(hundred + quater + one);
    }
}
0