結果

問題 No.32 貯金箱の憂鬱
ユーザー 刘俊
提出日時 2025-08-11 17:55:12
言語 Java
(openjdk 23)
結果
AC  
実行時間 120 ms / 5,000 ms
コード長 287 bytes
コンパイル時間 3,416 ms
コンパイル使用メモリ 76,268 KB
実行使用メモリ 46,616 KB
最終ジャッジ日時 2025-08-11 17:55:21
合計ジャッジ時間 6,171 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

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