結果

問題 No.32 貯金箱の憂鬱
ユーザー KazukiAkitaKazukiAkita
提出日時 2017-10-26 18:01:54
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 5,000 ms
コード長 466 bytes
コンパイル時間 1,957 ms
コンパイル使用メモリ 71,788 KB
実行使用メモリ 56,360 KB
最終ジャッジ日時 2023-09-30 12:44:05
合計ジャッジ時間 4,258 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,504 KB
testcase_01 AC 126 ms
54,220 KB
testcase_02 AC 125 ms
55,788 KB
testcase_03 AC 125 ms
55,852 KB
testcase_04 AC 124 ms
55,848 KB
testcase_05 AC 124 ms
56,360 KB
testcase_06 AC 127 ms
56,232 KB
testcase_07 AC 126 ms
56,060 KB
testcase_08 AC 124 ms
55,920 KB
testcase_09 AC 125 ms
55,820 KB
testcase_10 AC 124 ms
56,252 KB
testcase_11 AC 125 ms
55,912 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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();

        int O = N / 25;
        int P = (O + M) / 4;
        int Q = (P + L) / 10;


        System.out.println(N % 25 + (O + M) % 4 + (P + L) % 10);


            //ここまで
        sc.close();
    }
}
0