結果

問題 No.32 貯金箱の憂鬱
ユーザー econo_coffeeecono_coffee
提出日時 2017-03-23 18:24:51
言語 Java21
(openjdk 21)
結果
AC  
実行時間 135 ms / 5,000 ms
コード長 336 bytes
コンパイル時間 3,417 ms
コンパイル使用メモリ 72,108 KB
実行使用メモリ 56,200 KB
最終ジャッジ日時 2023-09-30 10:01:17
合計ジャッジ時間 6,369 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
55,820 KB
testcase_01 AC 127 ms
55,852 KB
testcase_02 AC 128 ms
55,828 KB
testcase_03 AC 127 ms
55,724 KB
testcase_04 AC 128 ms
55,868 KB
testcase_05 AC 130 ms
55,524 KB
testcase_06 AC 127 ms
55,572 KB
testcase_07 AC 128 ms
55,888 KB
testcase_08 AC 125 ms
56,124 KB
testcase_09 AC 127 ms
56,200 KB
testcase_10 AC 129 ms
55,704 KB
testcase_11 AC 128 ms
55,736 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Yukicoder {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int L =sc.nextInt();
		int M =sc.nextInt();
		int N =sc.nextInt();

		int sum = 0;

		M += N / 25;
		sum += N % 25;

		L += M / 4;
		sum += M % 4;

		sum += L % 10;

		System.out.println(sum);

	}

}
0