結果

問題 No.32 貯金箱の憂鬱
ユーザー fal_rndfal_rnd
提出日時 2017-03-31 16:07:00
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 5,000 ms
コード長 339 bytes
コンパイル時間 1,929 ms
コンパイル使用メモリ 70,880 KB
実行使用メモリ 56,176 KB
最終ジャッジ日時 2023-09-30 10:12:37
合計ジャッジ時間 4,231 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
56,176 KB
testcase_01 AC 125 ms
55,784 KB
testcase_02 AC 126 ms
55,764 KB
testcase_03 AC 126 ms
55,976 KB
testcase_04 AC 125 ms
56,032 KB
testcase_05 AC 123 ms
55,972 KB
testcase_06 AC 123 ms
56,012 KB
testcase_07 AC 125 ms
55,700 KB
testcase_08 AC 126 ms
55,912 KB
testcase_09 AC 126 ms
55,772 KB
testcase_10 AC 126 ms
55,712 KB
testcase_11 AC 127 ms
55,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{

	static Scanner s=new Scanner(System.in);

	public static void main(String __[]){
		input();
		solve();
	}

	private static void input(){
	}

	private static void solve(){
		int in=s.nextInt()*100+s.nextInt()*25+s.nextInt();
		in%=1000;
		System.out.println(in/100+(in%100)/25+(in%25));
	}
}
0