結果

問題 No.32 貯金箱の憂鬱
ユーザー aikon_marimoaikon_marimo
提出日時 2018-05-07 22:23:47
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 5,000 ms
コード長 389 bytes
コンパイル時間 2,092 ms
コンパイル使用メモリ 71,128 KB
実行使用メモリ 56,172 KB
最終ジャッジ日時 2023-09-30 13:10:30
合計ジャッジ時間 4,441 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,812 KB
testcase_01 AC 126 ms
55,524 KB
testcase_02 AC 125 ms
55,716 KB
testcase_03 AC 125 ms
56,012 KB
testcase_04 AC 125 ms
56,172 KB
testcase_05 AC 126 ms
55,776 KB
testcase_06 AC 125 ms
55,572 KB
testcase_07 AC 124 ms
55,884 KB
testcase_08 AC 125 ms
55,700 KB
testcase_09 AC 125 ms
55,816 KB
testcase_10 AC 124 ms
55,848 KB
testcase_11 AC 125 ms
56,064 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.Iterator;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);

		int L = in.nextInt();
		int M = in.nextInt();
		int N = in.nextInt();
		int K = 0;

		M += N / 25;
		N = N % 25;

		L += M / 4;
		M = M % 4;

		K += L / 10;
		L = L % 10;

		System.out.println(L+M+N);
	}
}
0