結果

問題 No.32 貯金箱の憂鬱
ユーザー soujikisoujiki
提出日時 2015-04-24 21:24:29
言語 Java19
(openjdk 21)
結果
AC  
実行時間 129 ms / 5,000 ms
コード長 402 bytes
コンパイル時間 3,432 ms
コンパイル使用メモリ 72,476 KB
実行使用メモリ 56,188 KB
最終ジャッジ日時 2023-09-30 07:50:01
合計ジャッジ時間 5,852 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
56,028 KB
testcase_01 AC 127 ms
55,796 KB
testcase_02 AC 126 ms
55,544 KB
testcase_03 AC 126 ms
55,700 KB
testcase_04 AC 127 ms
55,728 KB
testcase_05 AC 125 ms
56,188 KB
testcase_06 AC 125 ms
55,660 KB
testcase_07 AC 124 ms
55,668 KB
testcase_08 AC 126 ms
53,848 KB
testcase_09 AC 124 ms
56,140 KB
testcase_10 AC 125 ms
56,000 KB
testcase_11 AC 129 ms
55,996 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Yukicoder_32{
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int L = stdIn.nextInt();
		int M = stdIn.nextInt();
		int N = stdIn.nextInt();
		int K = 0;
		int count = N/25;
		N -= count*25;
		M += count;
		count = M/4;
		M -= count*4;
		L += count;
		count = L/10;
		L -= count*10;
		K = count;

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