結果

問題 No.32 貯金箱の憂鬱
ユーザー shinshin
提出日時 2022-05-15 18:56:13
言語 Java19
(openjdk 21)
結果
AC  
実行時間 43 ms / 5,000 ms
コード長 511 bytes
コンパイル時間 3,235 ms
コンパイル使用メモリ 71,328 KB
実行使用メモリ 49,604 KB
最終ジャッジ日時 2023-10-11 05:00:47
合計ジャッジ時間 4,636 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
49,420 KB
testcase_01 AC 43 ms
49,456 KB
testcase_02 AC 41 ms
49,460 KB
testcase_03 AC 43 ms
49,476 KB
testcase_04 AC 43 ms
49,264 KB
testcase_05 AC 42 ms
49,420 KB
testcase_06 AC 43 ms
49,168 KB
testcase_07 AC 43 ms
49,328 KB
testcase_08 AC 42 ms
49,604 KB
testcase_09 AC 43 ms
49,368 KB
testcase_10 AC 43 ms
49,184 KB
testcase_11 AC 43 ms
49,496 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class No32 {

	public static void main(String[] args) throws IOException{
		//貯金箱の憂鬱
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int L = Integer.parseInt(br.readLine()) , M = Integer.parseInt(br.readLine()) , N = Integer.parseInt(br.readLine());
		br.close();
		
		M += (int)(N / 25);
		L += (int)(M / 4);

		System.out.println((L % 10) + (M % 4) + (N % 25));
	}

}
0