結果

問題 No.285 消費税2
ユーザー neko_the_shadowneko_the_shadow
提出日時 2019-03-01 10:27:32
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 312 bytes
コンパイル時間 2,052 ms
コンパイル使用メモリ 72,600 KB
実行使用メモリ 58,216 KB
最終ジャッジ日時 2023-09-05 16:27:53
合計ジャッジ時間 7,275 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,688 KB
testcase_01 AC 121 ms
55,944 KB
testcase_02 AC 123 ms
55,960 KB
testcase_03 AC 124 ms
55,808 KB
testcase_04 AC 124 ms
55,708 KB
testcase_05 AC 124 ms
56,096 KB
testcase_06 AC 122 ms
55,564 KB
testcase_07 AC 121 ms
55,748 KB
testcase_08 AC 123 ms
56,076 KB
testcase_09 AC 121 ms
56,256 KB
testcase_10 AC 125 ms
55,872 KB
testcase_11 AC 124 ms
55,984 KB
testcase_12 AC 122 ms
56,064 KB
testcase_13 AC 122 ms
55,892 KB
testcase_14 AC 123 ms
56,100 KB
testcase_15 AC 122 ms
55,724 KB
testcase_16 AC 121 ms
55,472 KB
testcase_17 AC 122 ms
56,272 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 123 ms
56,224 KB
testcase_21 AC 122 ms
55,664 KB
testcase_22 AC 122 ms
55,472 KB
testcase_23 AC 126 ms
55,856 KB
testcase_24 WA -
testcase_25 AC 121 ms
55,904 KB
testcase_26 AC 119 ms
55,720 KB
testcase_27 AC 119 ms
56,316 KB
testcase_28 WA -
testcase_29 AC 121 ms
56,252 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner stdin = new Scanner(System.in);
        long d = stdin.nextLong();
        
        long x = d * 108;
        long y = x / 100;
        long z = x % 100;
        System.out.printf("%d.%d", y, z);
    }
}
0