結果

問題 No.285 消費税2
ユーザー samplelpmassamplelpmas
提出日時 2017-05-13 19:21:48
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 342 bytes
コンパイル時間 2,496 ms
コンパイル使用メモリ 73,516 KB
実行使用メモリ 59,064 KB
最終ジャッジ日時 2023-10-13 16:18:54
合計ジャッジ時間 8,288 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 149 ms
56,912 KB
testcase_01 AC 151 ms
56,864 KB
testcase_02 AC 154 ms
56,688 KB
testcase_03 AC 152 ms
57,084 KB
testcase_04 AC 149 ms
54,808 KB
testcase_05 AC 150 ms
56,944 KB
testcase_06 AC 151 ms
57,164 KB
testcase_07 AC 152 ms
56,700 KB
testcase_08 AC 149 ms
56,584 KB
testcase_09 AC 150 ms
56,580 KB
testcase_10 AC 149 ms
56,828 KB
testcase_11 AC 147 ms
59,064 KB
testcase_12 AC 150 ms
56,820 KB
testcase_13 AC 152 ms
56,832 KB
testcase_14 AC 152 ms
56,784 KB
testcase_15 AC 152 ms
56,876 KB
testcase_16 AC 150 ms
57,208 KB
testcase_17 AC 156 ms
56,912 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 151 ms
56,612 KB
testcase_21 AC 150 ms
56,804 KB
testcase_22 AC 153 ms
56,956 KB
testcase_23 AC 152 ms
56,716 KB
testcase_24 WA -
testcase_25 AC 151 ms
56,736 KB
testcase_26 AC 149 ms
57,092 KB
testcase_27 AC 149 ms
57,064 KB
testcase_28 WA -
testcase_29 AC 151 ms
56,760 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        long d = sc.nextLong();

        d *= 108;

        long integerPart = d / 100;
        long fractionalPart = d % 100;

        System.out.println(integerPart + "." + fractionalPart);

    }

}
0