結果

問題 No.32 貯金箱の憂鬱
ユーザー hikari2004hikari2004
提出日時 2016-04-20 13:44:10
言語 Java21
(openjdk 21)
結果
AC  
実行時間 130 ms / 5,000 ms
コード長 393 bytes
コンパイル時間 3,241 ms
コンパイル使用メモリ 71,576 KB
実行使用メモリ 56,332 KB
最終ジャッジ日時 2023-09-30 08:05:32
合計ジャッジ時間 6,074 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,860 KB
testcase_01 AC 124 ms
55,936 KB
testcase_02 AC 126 ms
55,912 KB
testcase_03 AC 124 ms
55,812 KB
testcase_04 AC 124 ms
56,332 KB
testcase_05 AC 124 ms
55,736 KB
testcase_06 AC 130 ms
55,732 KB
testcase_07 AC 124 ms
55,492 KB
testcase_08 AC 129 ms
55,944 KB
testcase_09 AC 129 ms
55,748 KB
testcase_10 AC 128 ms
55,772 KB
testcase_11 AC 126 ms
55,908 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No32 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int hyaku = sc.nextInt();
		int nijugo = sc.nextInt();
		int iti = sc.nextInt();

		nijugo = nijugo + (iti / 25);
		iti = iti % 25;

		hyaku = hyaku + (nijugo / 4);
		nijugo = nijugo % 4;

		hyaku = hyaku % 10;

		System.out.println(iti + nijugo + hyaku);
	}

}
0