結果

問題 No.32 貯金箱の憂鬱
ユーザー カニ戯(ryカニ戯(ry
提出日時 2015-02-26 15:53:02
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 5,000 ms
コード長 233 bytes
コンパイル時間 2,688 ms
コンパイル使用メモリ 71,688 KB
実行使用メモリ 56,060 KB
最終ジャッジ日時 2023-09-30 07:48:43
合計ジャッジ時間 4,474 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,928 KB
testcase_01 AC 123 ms
56,060 KB
testcase_02 AC 122 ms
55,552 KB
testcase_03 AC 123 ms
53,896 KB
testcase_04 AC 126 ms
55,788 KB
testcase_05 AC 132 ms
55,552 KB
testcase_06 AC 133 ms
55,652 KB
testcase_07 AC 125 ms
55,672 KB
testcase_08 AC 126 ms
55,620 KB
testcase_09 AC 124 ms
55,972 KB
testcase_10 AC 125 ms
55,624 KB
testcase_11 AC 126 ms
55,836 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;


public class Main {
	public static void main(String[] a) {
		Scanner s=new Scanner(System.in);
		int S=(100*s.nextInt()+25*s.nextInt()+s.nextInt())%1000;
		System.out.println(S/100+S%100/25+S%100%25);
	}
}
0