結果

問題 No.32 貯金箱の憂鬱
ユーザー brave_reverse_brave_reverse_
提出日時 2016-01-07 14:53:05
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 5,000 ms
コード長 440 bytes
コンパイル時間 3,074 ms
コンパイル使用メモリ 71,488 KB
実行使用メモリ 56,428 KB
最終ジャッジ日時 2023-09-30 08:01:11
合計ジャッジ時間 5,392 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
55,780 KB
testcase_01 AC 130 ms
55,640 KB
testcase_02 AC 124 ms
55,800 KB
testcase_03 AC 124 ms
55,532 KB
testcase_04 AC 124 ms
56,224 KB
testcase_05 AC 123 ms
56,428 KB
testcase_06 AC 125 ms
55,840 KB
testcase_07 AC 126 ms
55,996 KB
testcase_08 AC 124 ms
55,800 KB
testcase_09 AC 123 ms
55,992 KB
testcase_10 AC 125 ms
55,852 KB
testcase_11 AC 126 ms
56,116 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicorder;
import java.util.Scanner;

public class QNo32 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		short l = sc.nextShort();
		short m = sc.nextShort();
		short n = sc.nextShort();
		int total = 100*l+25*m+n;
		int releive = total%1000;
		short num = 0;
		num += releive/100;
		releive %= 100;
		num += releive/25;
		releive %= 25;
		num += releive/1;
		
		System.out.println(num);
	}

}
0