結果

問題 No.285 消費税2
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2016-11-16 23:11:49
言語 Java21
(openjdk 21)
結果
AC  
実行時間 159 ms / 2,000 ms
コード長 341 bytes
コンパイル時間 2,234 ms
コンパイル使用メモリ 72,732 KB
実行使用メモリ 57,064 KB
最終ジャッジ日時 2023-08-17 07:44:13
合計ジャッジ時間 8,423 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 156 ms
56,940 KB
testcase_01 AC 155 ms
57,028 KB
testcase_02 AC 154 ms
56,772 KB
testcase_03 AC 154 ms
56,644 KB
testcase_04 AC 153 ms
56,948 KB
testcase_05 AC 153 ms
54,928 KB
testcase_06 AC 153 ms
56,704 KB
testcase_07 AC 155 ms
56,540 KB
testcase_08 AC 156 ms
56,648 KB
testcase_09 AC 153 ms
56,888 KB
testcase_10 AC 155 ms
56,536 KB
testcase_11 AC 157 ms
56,800 KB
testcase_12 AC 156 ms
56,628 KB
testcase_13 AC 158 ms
56,852 KB
testcase_14 AC 157 ms
56,876 KB
testcase_15 AC 155 ms
56,540 KB
testcase_16 AC 157 ms
56,604 KB
testcase_17 AC 159 ms
56,956 KB
testcase_18 AC 155 ms
56,888 KB
testcase_19 AC 156 ms
56,768 KB
testcase_20 AC 158 ms
56,844 KB
testcase_21 AC 155 ms
56,892 KB
testcase_22 AC 155 ms
56,852 KB
testcase_23 AC 157 ms
56,632 KB
testcase_24 AC 159 ms
56,860 KB
testcase_25 AC 157 ms
56,852 KB
testcase_26 AC 155 ms
56,844 KB
testcase_27 AC 155 ms
57,064 KB
testcase_28 AC 154 ms
56,936 KB
testcase_29 AC 156 ms
56,856 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long D = sc.nextLong();
        long d = D*108;
        String A = String.valueOf(d);
        String B = A.substring(0,A.length()-2)+"."+A.substring(A.length()-2);
        System.out.println(B);
    }
}
0