結果

問題 No.32 貯金箱の憂鬱
ユーザー 8130Tsk8130Tsk
提出日時 2015-07-24 20:46:14
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 5,000 ms
コード長 446 bytes
コンパイル時間 5,129 ms
コンパイル使用メモリ 71,384 KB
実行使用メモリ 56,264 KB
最終ジャッジ日時 2023-09-30 07:53:12
合計ジャッジ時間 6,254 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,564 KB
testcase_01 AC 121 ms
55,912 KB
testcase_02 AC 123 ms
56,012 KB
testcase_03 AC 124 ms
56,012 KB
testcase_04 AC 124 ms
55,504 KB
testcase_05 AC 123 ms
56,264 KB
testcase_06 AC 122 ms
55,740 KB
testcase_07 AC 124 ms
55,832 KB
testcase_08 AC 123 ms
55,536 KB
testcase_09 AC 123 ms
55,816 KB
testcase_10 AC 122 ms
55,864 KB
testcase_11 AC 123 ms
55,760 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No26 {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int L = sc.nextInt();
		int M = sc.nextInt();
		int N = sc.nextInt();
		
		int count1= N/25;
		N = N - count1*25;
		M = M + count1;
		
		int count2 = M/4;
		M = M - count2*4;
		L = L + count2;
		int count3 = L/10;
		L = L - count3*10;
		
		System.out.println(L+M+N);	
		

	}

}
0