結果

問題 No.285 消費税2
ユーザー fkwnw3_1243fkwnw3_1243
提出日時 2017-09-17 12:50:16
言語 Java21
(openjdk 21)
結果
AC  
実行時間 96 ms / 2,000 ms
コード長 589 bytes
コンパイル時間 3,412 ms
コンパイル使用メモリ 75,392 KB
実行使用メモリ 53,208 KB
最終ジャッジ日時 2024-04-25 14:54:14
合計ジャッジ時間 7,144 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
51,472 KB
testcase_01 AC 84 ms
51,556 KB
testcase_02 AC 90 ms
51,400 KB
testcase_03 AC 85 ms
51,348 KB
testcase_04 AC 83 ms
51,532 KB
testcase_05 AC 82 ms
51,208 KB
testcase_06 AC 83 ms
51,456 KB
testcase_07 AC 85 ms
52,836 KB
testcase_08 AC 86 ms
52,860 KB
testcase_09 AC 86 ms
51,868 KB
testcase_10 AC 86 ms
53,208 KB
testcase_11 AC 85 ms
51,208 KB
testcase_12 AC 87 ms
51,204 KB
testcase_13 AC 82 ms
51,428 KB
testcase_14 AC 83 ms
51,532 KB
testcase_15 AC 86 ms
51,348 KB
testcase_16 AC 84 ms
51,320 KB
testcase_17 AC 82 ms
51,548 KB
testcase_18 AC 83 ms
51,432 KB
testcase_19 AC 82 ms
51,472 KB
testcase_20 AC 85 ms
51,208 KB
testcase_21 AC 79 ms
51,116 KB
testcase_22 AC 82 ms
51,304 KB
testcase_23 AC 81 ms
51,408 KB
testcase_24 AC 83 ms
51,424 KB
testcase_25 AC 96 ms
51,332 KB
testcase_26 AC 83 ms
51,404 KB
testcase_27 AC 80 ms
51,352 KB
testcase_28 AC 85 ms
51,580 KB
testcase_29 AC 82 ms
51,564 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