結果

問題 No.32 貯金箱の憂鬱
ユーザー ダンネックダンネック
提出日時 2020-05-23 00:50:54
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 537 bytes
コンパイル時間 3,391 ms
コンパイル使用メモリ 74,920 KB
実行使用メモリ 41,664 KB
最終ジャッジ日時 2024-04-15 21:21:56
合計ジャッジ時間 5,423 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 119 ms
41,100 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 117 ms
41,664 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