結果

問題 No.32 貯金箱の憂鬱
ユーザー HaleakalaHaleakala
提出日時 2018-02-18 17:54:02
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 548 bytes
コンパイル時間 3,533 ms
コンパイル使用メモリ 71,656 KB
実行使用メモリ 58,716 KB
最終ジャッジ日時 2023-09-12 16:35:36
合計ジャッジ時間 5,688 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 119 ms
55,956 KB
testcase_02 AC 119 ms
56,240 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 120 ms
55,700 KB
testcase_08 WA -
testcase_09 AC 119 ms
56,180 KB
testcase_10 WA -
testcase_11 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Answer {
	public static void main(String str[]) {
        Scanner sc = new Scanner(System.in);

        int num_100 = Integer.valueOf(sc.nextLine());
        int num_25 = Integer.valueOf(sc.nextLine());
        int num_1 = Integer.valueOf(sc.nextLine());

        int sum = 0;

        num_1 = num_1 % 25;
        num_25 += num_1 / 25;

        num_25 = num_25 % 4;
        num_100 += num_25 / 4;

        num_100 = num_100 % 10;

        sum = num_1 + num_25 + num_100;
        System.out.println(sum);
	}
}
0