結果

問題 No.32 貯金箱の憂鬱
ユーザー gomagoma
提出日時 2017-09-19 19:45:07
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 350 bytes
コンパイル時間 1,769 ms
コンパイル使用メモリ 73,984 KB
実行使用メモリ 54,484 KB
最終ジャッジ日時 2024-04-25 18:15:26
合計ジャッジ時間 3,928 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
54,332 KB
testcase_01 AC 102 ms
53,040 KB
testcase_02 WA -
testcase_03 AC 106 ms
52,740 KB
testcase_04 WA -
testcase_05 AC 119 ms
54,216 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
権限があれば一括ダウンロードができます

ソースコード

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