結果

問題 No.32 貯金箱の憂鬱
ユーザー Cavasiro
提出日時 2020-04-15 01:20:46
言語 Java
(openjdk 23)
結果
AC  
実行時間 136 ms / 5,000 ms
コード長 310 bytes
コンパイル時間 2,064 ms
コンパイル使用メモリ 74,100 KB
実行使用メモリ 54,304 KB
最終ジャッジ日時 2024-07-23 08:07:28
合計ジャッジ時間 4,302 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
 
class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int k = 0;
		int l = sc.nextInt();
		int m = sc.nextInt();
		int n = sc.nextInt();
		m += n/25;
		n %= 25;
		l += m/4;
		m %= 4;
		k += l/10;
		l %= 10;
		System.out.println(l+m+n);
	}
}
0