結果

問題 No.32 貯金箱の憂鬱
ユーザー spaciaspacia
提出日時 2015-12-16 20:10:26
言語 Java19
(openjdk 21)
結果
AC  
実行時間 44 ms / 5,000 ms
コード長 542 bytes
コンパイル時間 1,997 ms
コンパイル使用メモリ 72,316 KB
実行使用メモリ 49,776 KB
最終ジャッジ日時 2023-09-30 08:00:31
合計ジャッジ時間 3,240 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
49,484 KB
testcase_01 AC 44 ms
49,320 KB
testcase_02 AC 43 ms
49,232 KB
testcase_03 AC 44 ms
49,392 KB
testcase_04 AC 44 ms
49,588 KB
testcase_05 AC 44 ms
49,532 KB
testcase_06 AC 44 ms
49,776 KB
testcase_07 AC 43 ms
49,292 KB
testcase_08 AC 44 ms
49,380 KB
testcase_09 AC 44 ms
49,328 KB
testcase_10 AC 44 ms
49,400 KB
testcase_11 AC 44 ms
49,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;
import java.math.*;

class Main32 {
	
	public static void out (Object o) {
		System.out.println(o);
	}
	
	public static void main (String[] args) throws IOException {
		BufferedReader br = 
			new BufferedReader(new InputStreamReader(System.in));
		
		int l = Integer.parseInt(br.readLine()); // 100
		int m = Integer.parseInt(br.readLine()); //  25
		int n = Integer.parseInt(br.readLine()); //   1
		
		m += n / 25;
		n %= 25;
		l += m / 4;
		m %= 4;
		l %= 10;
		
		System.out.println(l + m + n);
	}
}
0