結果

問題 No.32 貯金箱の憂鬱
ユーザー Natsume-MNatsume-M
提出日時 2016-12-09 16:58:53
言語 Java19
(openjdk 21)
結果
AC  
実行時間 124 ms / 5,000 ms
コード長 266 bytes
コンパイル時間 1,975 ms
コンパイル使用メモリ 71,480 KB
実行使用メモリ 56,164 KB
最終ジャッジ日時 2023-09-30 08:18:53
合計ジャッジ時間 4,210 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
56,164 KB
testcase_01 AC 123 ms
55,452 KB
testcase_02 AC 120 ms
55,996 KB
testcase_03 AC 122 ms
55,720 KB
testcase_04 AC 122 ms
56,112 KB
testcase_05 AC 124 ms
55,580 KB
testcase_06 AC 121 ms
55,972 KB
testcase_07 AC 122 ms
56,016 KB
testcase_08 AC 123 ms
55,476 KB
testcase_09 AC 120 ms
55,964 KB
testcase_10 AC 124 ms
55,684 KB
testcase_11 AC 123 ms
56,024 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class y32 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a, h = sc.nextInt(), q = sc.nextInt(), o = sc.nextInt();
		a = (h*100+q*25+o)%1000;
		System.out.println(a/100+(a%100)/25+a%25);
		sc.close();
	}
}
0