結果

問題 No.32 貯金箱の憂鬱
ユーザー yuma_shobon1108yuma_shobon1108
提出日時 2016-11-11 14:47:44
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 5,000 ms
コード長 335 bytes
コンパイル時間 1,994 ms
コンパイル使用メモリ 71,360 KB
実行使用メモリ 56,092 KB
最終ジャッジ日時 2023-09-30 08:17:34
合計ジャッジ時間 4,311 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
55,588 KB
testcase_01 AC 125 ms
56,092 KB
testcase_02 AC 127 ms
55,588 KB
testcase_03 AC 129 ms
55,512 KB
testcase_04 AC 126 ms
55,308 KB
testcase_05 AC 127 ms
55,656 KB
testcase_06 AC 126 ms
55,800 KB
testcase_07 AC 127 ms
55,444 KB
testcase_08 AC 128 ms
55,728 KB
testcase_09 AC 126 ms
55,952 KB
testcase_10 AC 125 ms
55,552 KB
testcase_11 AC 125 ms
55,628 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Question032
{
	public static void main(String[] args)
	{
	
		Scanner scan = new Scanner(System.in);
		
		int oh = scan.nextInt();
		int tf = scan.nextInt();
		int one = scan.nextInt();
		
		tf += one/25;
		one = one%25;

		oh += tf/4;
		tf = tf%4;

		oh = oh%10;

		System.out.println(one+tf+oh);
	}
}
0