結果

問題 No.32 貯金箱の憂鬱
ユーザー ダンネックダンネック
提出日時 2020-05-23 00:50:54
言語 Java19
(openjdk 21)
結果
WA  
実行時間 -
コード長 537 bytes
コンパイル時間 3,297 ms
コンパイル使用メモリ 71,956 KB
実行使用メモリ 58,028 KB
最終ジャッジ日時 2023-07-28 12:36:42
合計ジャッジ時間 5,616 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

import java.util.Arrays;
import java.util.Scanner;
public class sort{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
		int i = sc.nextInt();
		int j = sc.nextInt();
		int k = sc.nextInt();
		int j_kuriage = 0;
		int k_kuriage= 0;
		int i_total = 0;
		int j_total = 0;
		int k_total = 0;
		k_kuriage = k/25;
		k_total = k%25;
		j_kuriage = (j + k_kuriage)/4;
		j_total = (j + k_kuriage)%4;
		i_total = (i + j_kuriage)/10;
		System.out.println(i_total+j_total+k_total);
        sc.close();
    }
}
0