結果

問題 No.32 貯金箱の憂鬱
ユーザー goma
提出日時 2017-09-19 19:45:07
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 350 bytes
コンパイル時間 2,009 ms
コンパイル使用メモリ 73,396 KB
実行使用メモリ 41,544 KB
最終ジャッジ日時 2024-11-08 05:41:52
合計ジャッジ時間 4,322 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();// 100
		int b = sc.nextInt();// 25
		int c = sc.nextInt();// 1

		b += c / 25;
		int sum = b / 4;
		a += sum;
		b -= sum * 4;
		sum = a / 10;
		a -= sum * 10;
		System.out.println(a + b + c);

	}
}
0