結果

問題 No.285 消費税2
ユーザー fkwnw3_1243
提出日時 2017-09-17 12:50:16
言語 Java
(openjdk 23)
結果
AC  
実行時間 101 ms / 2,000 ms
コード長 589 bytes
コンパイル時間 6,456 ms
コンパイル使用メモリ 82,436 KB
実行使用メモリ 40,096 KB
最終ジャッジ日時 2024-11-08 01:51:58
合計ジャッジ時間 9,740 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

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