結果

問題 No.32 貯金箱の憂鬱
ユーザー ぴろずぴろず
提出日時 2014-12-18 13:17:56
言語 Java21
(openjdk 21)
結果
AC  
実行時間 132 ms / 5,000 ms
コード長 353 bytes
コンパイル時間 2,122 ms
コンパイル使用メモリ 74,308 KB
実行使用メモリ 56,100 KB
最終ジャッジ日時 2023-09-30 07:47:01
合計ジャッジ時間 4,281 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
55,888 KB
testcase_01 AC 132 ms
55,816 KB
testcase_02 AC 128 ms
55,672 KB
testcase_03 AC 127 ms
55,492 KB
testcase_04 AC 127 ms
55,768 KB
testcase_05 AC 126 ms
55,616 KB
testcase_06 AC 126 ms
55,864 KB
testcase_07 AC 126 ms
55,900 KB
testcase_08 AC 125 ms
55,852 KB
testcase_09 AC 125 ms
55,576 KB
testcase_10 AC 127 ms
55,884 KB
testcase_11 AC 126 ms
56,100 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package no032;

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int l = sc.nextInt();
		int m = sc.nextInt();
		int n = sc.nextInt();
		m += n / 25; n -= (n / 25) * 25;
		l += m / 4;  m -= (m / 4) * 4;
		l %= 10;
		System.out.println(l + m + n);
	}

}
0