結果

問題 No.32 貯金箱の憂鬱
ユーザー MatumoMatumo
提出日時 2018-07-13 03:00:09
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 5,000 ms
コード長 325 bytes
コンパイル時間 2,050 ms
コンパイル使用メモリ 70,940 KB
実行使用メモリ 56,532 KB
最終ジャッジ日時 2023-09-30 13:13:31
合計ジャッジ時間 4,304 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
54,116 KB
testcase_01 AC 123 ms
55,912 KB
testcase_02 AC 124 ms
56,160 KB
testcase_03 AC 126 ms
56,532 KB
testcase_04 AC 125 ms
55,960 KB
testcase_05 AC 125 ms
56,268 KB
testcase_06 AC 127 ms
55,780 KB
testcase_07 AC 128 ms
55,576 KB
testcase_08 AC 127 ms
56,196 KB
testcase_09 AC 126 ms
55,860 KB
testcase_10 AC 122 ms
55,552 KB
testcase_11 AC 125 ms
56,428 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

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

	public static void main(String[] args) {
		
		int l = sc.nextInt();
		int m = sc.nextInt();
		int n = sc.nextInt();
		
		m += n / 25;
		n %= 25;
		
		l += m / 4;
		m %= 4;
		
		l %= 10;
		
		System.out.println(l + m + n);
    }
}
0