結果

問題 No.32 貯金箱の憂鬱
ユーザー t8m8⛄️t8m8⛄️
提出日時 2015-04-03 04:51:22
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 821 bytes
コンパイル時間 3,634 ms
コンパイル使用メモリ 72,888 KB
実行使用メモリ 57,968 KB
最終ジャッジ日時 2023-09-17 03:54:35
合計ジャッジ時間 5,700 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,812 KB
testcase_01 AC 127 ms
55,880 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 124 ms
56,036 KB
testcase_10 WA -
testcase_11 WA -
権限があれば一括ダウンロードができます

ソースコード

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() + l/25;
        int n = sc.nextInt() + m/4;
        l = l%25;
        m = m%4;
        n = n%10;
        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