結果

問題 No.32 貯金箱の憂鬱
ユーザー k_kadorak_kadora
提出日時 2015-05-20 03:13:13
言語 Java19
(openjdk 21)
結果
AC  
実行時間 128 ms / 5,000 ms
コード長 352 bytes
コンパイル時間 3,683 ms
コンパイル使用メモリ 71,572 KB
実行使用メモリ 56,232 KB
最終ジャッジ日時 2023-09-30 07:51:16
合計ジャッジ時間 6,367 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
56,232 KB
testcase_01 AC 128 ms
55,512 KB
testcase_02 AC 128 ms
55,584 KB
testcase_03 AC 127 ms
55,816 KB
testcase_04 AC 127 ms
56,144 KB
testcase_05 AC 124 ms
55,864 KB
testcase_06 AC 126 ms
55,772 KB
testcase_07 AC 125 ms
56,076 KB
testcase_08 AC 126 ms
56,024 KB
testcase_09 AC 127 ms
56,136 KB
testcase_10 AC 126 ms
55,684 KB
testcase_11 AC 128 ms
55,732 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Exchange{
	public static void main(String[] arg){
		int n,m,l;
		Scanner sc = new Scanner(System.in);
		l = sc.nextInt();
		m = sc.nextInt();
		n = sc.nextInt();
		while(n>=25){
			n = n - 25;
			m++;
		}
		while(m>=4){
			m = m - 4;
			l++;
		}
		while(l>=10){
			l = l - 10;
		}
		System.out.println(n+m+l);
	}
}
				
0