結果

問題 No.32 貯金箱の憂鬱
ユーザー shinwisteriashinwisteria
提出日時 2017-03-18 18:34:52
言語 Java19
(openjdk 21)
結果
AC  
実行時間 126 ms / 5,000 ms
コード長 315 bytes
コンパイル時間 3,046 ms
コンパイル使用メモリ 72,164 KB
実行使用メモリ 56,388 KB
最終ジャッジ日時 2023-09-30 08:24:45
合計ジャッジ時間 5,379 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,472 KB
testcase_01 AC 122 ms
55,832 KB
testcase_02 AC 123 ms
56,000 KB
testcase_03 AC 121 ms
55,828 KB
testcase_04 AC 124 ms
56,200 KB
testcase_05 AC 122 ms
56,072 KB
testcase_06 AC 123 ms
55,848 KB
testcase_07 AC 126 ms
56,388 KB
testcase_08 AC 123 ms
55,496 KB
testcase_09 AC 125 ms
55,788 KB
testcase_10 AC 124 ms
56,108 KB
testcase_11 AC 124 ms
56,196 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Chokin {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int L = s.nextInt(), M = s.nextInt(), N = s.nextInt();
		s.close();
		if(N/25 >= 1){
			M += N/25;
		}
		if(M/4 >= 1){
			L += M/4;
		}
		System.out.println(N%25 + M%4 + L%10);
	}

}
0