結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
56,088 KB
testcase_01 AC 124 ms
56,240 KB
testcase_02 AC 123 ms
55,888 KB
testcase_03 AC 126 ms
55,812 KB
testcase_04 AC 125 ms
55,604 KB
testcase_05 AC 125 ms
55,720 KB
testcase_06 AC 126 ms
55,840 KB
testcase_07 AC 126 ms
55,576 KB
testcase_08 AC 125 ms
55,724 KB
testcase_09 AC 124 ms
55,832 KB
testcase_10 AC 124 ms
56,376 KB
testcase_11 AC 125 ms
53,948 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