結果

問題 No.285 消費税2
ユーザー matsuyoshi30matsuyoshi30
提出日時 2018-06-07 23:34:32
言語 Java21
(openjdk 21)
結果
AC  
実行時間 140 ms / 2,000 ms
コード長 299 bytes
コンパイル時間 4,051 ms
コンパイル使用メモリ 73,128 KB
実行使用メモリ 56,712 KB
最終ジャッジ日時 2023-09-12 23:11:40
合計ジャッジ時間 10,161 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 136 ms
56,056 KB
testcase_01 AC 138 ms
56,144 KB
testcase_02 AC 136 ms
55,856 KB
testcase_03 AC 136 ms
55,756 KB
testcase_04 AC 138 ms
56,196 KB
testcase_05 AC 139 ms
56,232 KB
testcase_06 AC 138 ms
56,044 KB
testcase_07 AC 138 ms
55,972 KB
testcase_08 AC 140 ms
56,276 KB
testcase_09 AC 136 ms
55,996 KB
testcase_10 AC 139 ms
55,984 KB
testcase_11 AC 140 ms
56,308 KB
testcase_12 AC 137 ms
56,240 KB
testcase_13 AC 138 ms
55,840 KB
testcase_14 AC 138 ms
55,856 KB
testcase_15 AC 139 ms
56,712 KB
testcase_16 AC 137 ms
53,808 KB
testcase_17 AC 140 ms
55,964 KB
testcase_18 AC 138 ms
55,764 KB
testcase_19 AC 138 ms
56,124 KB
testcase_20 AC 138 ms
56,152 KB
testcase_21 AC 138 ms
55,964 KB
testcase_22 AC 137 ms
55,976 KB
testcase_23 AC 139 ms
55,960 KB
testcase_24 AC 137 ms
55,996 KB
testcase_25 AC 140 ms
55,704 KB
testcase_26 AC 138 ms
56,096 KB
testcase_27 AC 137 ms
55,972 KB
testcase_28 AC 140 ms
55,972 KB
testcase_29 AC 140 ms
55,460 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.math.*;

class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        BigDecimal b = in.nextBigDecimal();

        System.out.println(b.multiply(new BigDecimal("1.08")));
        // input : 100 -> output : 108
    }
}
0