結果

問題 No.32 貯金箱の憂鬱
ユーザー kou6839kou6839
提出日時 2014-11-18 16:35:38
言語 Java21
(openjdk 21)
結果
AC  
実行時間 132 ms / 5,000 ms
コード長 343 bytes
コンパイル時間 2,027 ms
コンパイル使用メモリ 72,116 KB
実行使用メモリ 56,184 KB
最終ジャッジ日時 2023-09-30 07:46:13
合計ジャッジ時間 4,529 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
56,076 KB
testcase_01 AC 126 ms
55,700 KB
testcase_02 AC 126 ms
55,968 KB
testcase_03 AC 126 ms
55,540 KB
testcase_04 AC 126 ms
55,820 KB
testcase_05 AC 124 ms
55,892 KB
testcase_06 AC 126 ms
56,184 KB
testcase_07 AC 132 ms
55,564 KB
testcase_08 AC 126 ms
53,964 KB
testcase_09 AC 127 ms
55,496 KB
testcase_10 AC 124 ms
55,876 KB
testcase_11 AC 124 ms
55,560 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
 

public class Main {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int hyaku = sc.nextInt();
		int niju=sc.nextInt();
		int iti=sc.nextInt();
		niju+=iti/25;
		iti=iti%25;
		hyaku+=niju/4;
		niju=niju%4;
		hyaku=hyaku%10;
		System.out.println(iti+niju+hyaku);
	}
}	
0