結果

問題 No.32 貯金箱の憂鬱
ユーザー suigingin
提出日時 2015-07-07 22:42:29
言語 Java
(openjdk 23)
結果
AC  
実行時間 132 ms / 5,000 ms
コード長 373 bytes
コンパイル時間 4,113 ms
コンパイル使用メモリ 74,164 KB
実行使用メモリ 54,248 KB
最終ジャッジ日時 2024-07-23 02:06:12
合計ジャッジ時間 5,415 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No_032 {
	Scanner sc = new Scanner(System.in);

	void run() {
		int L = sc.nextInt();
		int M = sc.nextInt();
		int N = sc.nextInt();

		int coin = 0;
		M += N / 25;
		coin += N % 25;
		L += M / 4;
		coin += M % 4;
		coin += L % 10;
		System.out.println(coin);
	}

	public static void main(String[] args) {
		new No_032().run();
	}
}
0