結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
53,708 KB
testcase_01 AC 129 ms
55,760 KB
testcase_02 AC 129 ms
55,396 KB
testcase_03 AC 127 ms
55,668 KB
testcase_04 AC 128 ms
55,788 KB
testcase_05 AC 128 ms
55,912 KB
testcase_06 AC 127 ms
55,848 KB
testcase_07 AC 129 ms
55,944 KB
testcase_08 AC 129 ms
55,960 KB
testcase_09 AC 128 ms
55,536 KB
testcase_10 AC 127 ms
55,744 KB
testcase_11 AC 129 ms
56,080 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