結果

問題 No.32 貯金箱の憂鬱
ユーザー yu_017yu_017
提出日時 2019-01-13 19:42:07
言語 Java21
(openjdk 21)
結果
AC  
実行時間 130 ms / 5,000 ms
コード長 303 bytes
コンパイル時間 3,278 ms
コンパイル使用メモリ 71,564 KB
実行使用メモリ 56,232 KB
最終ジャッジ日時 2023-09-30 13:23:12
合計ジャッジ時間 5,642 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,880 KB
testcase_01 AC 124 ms
55,760 KB
testcase_02 AC 122 ms
56,076 KB
testcase_03 AC 123 ms
55,588 KB
testcase_04 AC 124 ms
55,772 KB
testcase_05 AC 124 ms
56,232 KB
testcase_06 AC 121 ms
55,828 KB
testcase_07 AC 125 ms
55,708 KB
testcase_08 AC 130 ms
55,816 KB
testcase_09 AC 124 ms
56,008 KB
testcase_10 AC 124 ms
55,884 KB
testcase_11 AC 125 ms
56,192 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class A000032 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int total = sc.nextInt()*100+sc.nextInt()*25+sc.nextInt();
		sc.close();
		int r = (total%1000)/100;
		r+=(total%100)/25;
		r+=total%25;
		
		System.out.println(r);
	}
}
0