結果

問題 No.32 貯金箱の憂鬱
ユーザー sasakkisasakki
提出日時 2016-04-11 17:41:26
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 5,000 ms
コード長 387 bytes
コンパイル時間 2,236 ms
コンパイル使用メモリ 71,708 KB
実行使用メモリ 56,772 KB
最終ジャッジ日時 2023-09-30 08:05:07
合計ジャッジ時間 4,751 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,484 KB
testcase_01 AC 120 ms
55,496 KB
testcase_02 AC 119 ms
56,772 KB
testcase_03 AC 120 ms
55,548 KB
testcase_04 AC 120 ms
55,500 KB
testcase_05 AC 119 ms
55,668 KB
testcase_06 AC 118 ms
55,824 KB
testcase_07 AC 120 ms
55,668 KB
testcase_08 AC 120 ms
56,020 KB
testcase_09 AC 120 ms
56,348 KB
testcase_10 AC 122 ms
55,956 KB
testcase_11 AC 120 ms
55,748 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);

		int han = Integer.parseInt(sc.next());
		int twef = Integer.parseInt(sc.next());
		int one = Integer.parseInt(sc.next());

		twef += one / 25;
		one = one % 25;
		han += twef / 4;
		twef = twef % 4;
		han = han % 10;

		System.out.println( one + twef + han );
	}
}
0