結果

問題 No.32 貯金箱の憂鬱
ユーザー AoiroFukurouAoiroFukurou
提出日時 2016-09-27 15:09:58
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 5,000 ms
コード長 402 bytes
コンパイル時間 3,211 ms
コンパイル使用メモリ 71,720 KB
実行使用メモリ 56,040 KB
最終ジャッジ日時 2023-09-30 08:14:50
合計ジャッジ時間 5,608 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,872 KB
testcase_01 AC 124 ms
55,392 KB
testcase_02 AC 123 ms
55,620 KB
testcase_03 AC 123 ms
56,016 KB
testcase_04 AC 125 ms
55,744 KB
testcase_05 AC 125 ms
55,388 KB
testcase_06 AC 124 ms
56,040 KB
testcase_07 AC 124 ms
55,704 KB
testcase_08 AC 124 ms
55,904 KB
testcase_09 AC 127 ms
55,524 KB
testcase_10 AC 127 ms
55,960 KB
testcase_11 AC 128 ms
55,472 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;

import java.util.Scanner;

public class No_032 {
public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int L = sc.nextInt();
	int M = sc.nextInt();
	int N = sc.nextInt();
	sc.close();
	int tmp = N / 25;
	N -= tmp * 25;
	M += tmp;
	tmp = 0;
	tmp = M / 4;
	M -= tmp * 4;
	L += tmp;
	tmp = 0;
	tmp = L / 10;
	L -= tmp * 10;
	System.out.println(L + M + N);
}
}
0