結果

問題 No.32 貯金箱の憂鬱
ユーザー btkbtk
提出日時 2017-12-12 17:41:05
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 5,000 ms
コード長 434 bytes
コンパイル時間 2,048 ms
コンパイル使用メモリ 72,292 KB
実行使用メモリ 56,228 KB
最終ジャッジ日時 2023-09-30 12:47:33
合計ジャッジ時間 4,313 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,916 KB
testcase_01 AC 123 ms
55,992 KB
testcase_02 AC 123 ms
56,228 KB
testcase_03 AC 126 ms
55,732 KB
testcase_04 AC 124 ms
55,604 KB
testcase_05 AC 122 ms
56,008 KB
testcase_06 AC 123 ms
55,868 KB
testcase_07 AC 122 ms
55,552 KB
testcase_08 AC 124 ms
56,080 KB
testcase_09 AC 123 ms
56,092 KB
testcase_10 AC 125 ms
56,136 KB
testcase_11 AC 125 ms
56,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

/**
 * Created by btk on 2017/10/17.
 */
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();
        int ret = 0;

        ret+=N%25;
        M+=N/25;
        ret+=M%4;
        L+=M/4;
        ret+=L%10;

        System.out.println(ret);

        sc.close();
    }
}
0