結果

問題 No.32 貯金箱の憂鬱
ユーザー ダンネックダンネック
提出日時 2020-05-23 00:51:26
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 5,000 ms
コード長 537 bytes
コンパイル時間 3,429 ms
コンパイル使用メモリ 72,540 KB
実行使用メモリ 56,340 KB
最終ジャッジ日時 2023-09-30 13:53:35
合計ジャッジ時間 5,597 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
56,340 KB
testcase_01 AC 123 ms
56,336 KB
testcase_02 AC 124 ms
55,924 KB
testcase_03 AC 124 ms
56,140 KB
testcase_04 AC 125 ms
56,076 KB
testcase_05 AC 123 ms
56,296 KB
testcase_06 AC 122 ms
56,000 KB
testcase_07 AC 127 ms
56,152 KB
testcase_08 AC 125 ms
56,076 KB
testcase_09 AC 125 ms
55,932 KB
testcase_10 AC 124 ms
55,692 KB
testcase_11 AC 127 ms
56,000 KB
権限があれば一括ダウンロードができます

ソースコード

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