結果

問題 No.32 貯金箱の憂鬱
ユーザー Tsukasa_Type
提出日時 2018-02-08 22:18:34
言語 Java
(openjdk 23)
結果
AC  
実行時間 142 ms / 5,000 ms
コード長 342 bytes
コンパイル時間 2,062 ms
コンパイル使用メモリ 74,892 KB
実行使用メモリ 54,136 KB
最終ジャッジ日時 2024-07-23 07:03:39
合計ジャッジ時間 4,413 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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 H = sc.nextInt();

		int h = H/25;
		M += h;
		int m = M/4;
		L += m;
		int l = L/10;

		int count = H-h*25 + M-m*4 + L-l*10;

		System.out.println(count);
	}
}
0