結果

問題 No.32 貯金箱の憂鬱
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-08 22:18:34
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 5,000 ms
コード長 342 bytes
コンパイル時間 2,003 ms
コンパイル使用メモリ 72,056 KB
実行使用メモリ 56,332 KB
最終ジャッジ日時 2023-09-30 13:03:44
合計ジャッジ時間 4,230 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
56,332 KB
testcase_01 AC 121 ms
55,940 KB
testcase_02 AC 123 ms
56,300 KB
testcase_03 AC 122 ms
56,172 KB
testcase_04 AC 120 ms
55,776 KB
testcase_05 AC 120 ms
55,940 KB
testcase_06 AC 118 ms
53,908 KB
testcase_07 AC 121 ms
55,924 KB
testcase_08 AC 121 ms
55,972 KB
testcase_09 AC 119 ms
55,952 KB
testcase_10 AC 122 ms
56,000 KB
testcase_11 AC 122 ms
56,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		int L = sc.nextInt();
		int M = sc.nextInt();
		int H = sc.nextInt();

		int h = H/25;
		M += h;
		int m = M/4;
		L += m;
		int l = L/10;

		int count = H-h*25 + M-m*4 + L-l*10;

		System.out.println(count);
	}
}
0