結果

問題 No.32 貯金箱の憂鬱
ユーザー AoiroFukurou
提出日時 2016-09-27 15:09:58
言語 Java
(openjdk 23)
結果
AC  
実行時間 139 ms / 5,000 ms
コード長 402 bytes
コンパイル時間 3,489 ms
コンパイル使用メモリ 74,340 KB
実行使用メモリ 41,512 KB
最終ジャッジ日時 2024-07-23 02:25:03
合計ジャッジ時間 5,552 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;

import java.util.Scanner;

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