結果

問題 No.285 消費税2
ユーザー fkwnw3_1243fkwnw3_1243
提出日時 2017-09-17 12:50:16
言語 Java19
(openjdk 21)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 589 bytes
コンパイル時間 4,446 ms
コンパイル使用メモリ 72,236 KB
実行使用メモリ 53,912 KB
最終ジャッジ日時 2023-08-07 20:28:52
合計ジャッジ時間 7,708 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
51,372 KB
testcase_01 AC 76 ms
52,964 KB
testcase_02 AC 87 ms
51,800 KB
testcase_03 AC 77 ms
53,200 KB
testcase_04 AC 76 ms
53,788 KB
testcase_05 AC 80 ms
51,468 KB
testcase_06 AC 87 ms
52,124 KB
testcase_07 AC 87 ms
53,576 KB
testcase_08 AC 86 ms
53,832 KB
testcase_09 AC 82 ms
52,076 KB
testcase_10 AC 85 ms
51,728 KB
testcase_11 AC 80 ms
52,892 KB
testcase_12 AC 76 ms
53,052 KB
testcase_13 AC 76 ms
53,572 KB
testcase_14 AC 76 ms
53,580 KB
testcase_15 AC 79 ms
50,980 KB
testcase_16 AC 78 ms
53,816 KB
testcase_17 AC 76 ms
53,796 KB
testcase_18 AC 83 ms
53,912 KB
testcase_19 AC 87 ms
51,268 KB
testcase_20 AC 77 ms
52,400 KB
testcase_21 AC 76 ms
52,708 KB
testcase_22 AC 77 ms
52,728 KB
testcase_23 AC 77 ms
51,264 KB
testcase_24 AC 86 ms
51,512 KB
testcase_25 AC 86 ms
51,376 KB
testcase_26 AC 87 ms
53,748 KB
testcase_27 AC 86 ms
53,800 KB
testcase_28 AC 76 ms
51,072 KB
testcase_29 AC 78 ms
51,416 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;

import static java.lang.System.in;

public class No285 {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(in));

        BigInteger d= new BigInteger(reader.readLine());

        String result = d.multiply(BigInteger.valueOf(108)).toString();

        System.out.println(result.substring(0,result.length()-2) + "." + result.substring(result.length()-2,result.length()));
    }
}
0