結果

問題 No.32 貯金箱の憂鬱
ユーザー t8m8⛄️t8m8⛄️
提出日時 2015-04-03 04:56:31
言語 Java19
(openjdk 21)
結果
AC  
実行時間 125 ms / 5,000 ms
コード長 845 bytes
コンパイル時間 3,343 ms
コンパイル使用メモリ 72,344 KB
実行使用メモリ 56,240 KB
最終ジャッジ日時 2023-09-30 07:49:00
合計ジャッジ時間 5,711 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,920 KB
testcase_01 AC 124 ms
55,604 KB
testcase_02 AC 125 ms
55,564 KB
testcase_03 AC 124 ms
55,864 KB
testcase_04 AC 125 ms
56,152 KB
testcase_05 AC 125 ms
56,012 KB
testcase_06 AC 125 ms
53,788 KB
testcase_07 AC 124 ms
56,240 KB
testcase_08 AC 124 ms
55,820 KB
testcase_09 AC 123 ms
55,440 KB
testcase_10 AC 124 ms
55,628 KB
testcase_11 AC 121 ms
55,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

//No.32 貯金箱の憂鬱

import java.util.*;
import java.io.*;
import static java.util.Arrays.*;
import static java.lang.Math.*;

public class No32 {
    
    static final Scanner sc = new Scanner(System.in);
    static final PrintWriter out = new PrintWriter(System.out,false);

    static void solve() {
        int l = sc.nextInt();
        int m = sc.nextInt();
        int n = sc.nextInt();
        m += n/25;
        l += m/4;
        l = l%10;
        m = m%4;
        n = n%25;
        out.println((l+m+n));
    }

    public static void main(String[] args) {
        long start = System.currentTimeMillis();

        solve();
        out.flush();

        long end = System.currentTimeMillis();
        //trace(end-start + "ms");
        sc.close();
    }

    static void trace(Object... o) { System.out.println(deepToString(o));}
}
0