結果

問題 No.285 消費税2
ユーザー neko_the_shadowneko_the_shadow
提出日時 2019-03-01 10:28:28
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 2,000 ms
コード長 314 bytes
コンパイル時間 1,822 ms
コンパイル使用メモリ 72,284 KB
実行使用メモリ 56,864 KB
最終ジャッジ日時 2023-09-05 16:28:01
合計ジャッジ時間 6,823 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,756 KB
testcase_01 AC 117 ms
56,020 KB
testcase_02 AC 118 ms
55,972 KB
testcase_03 AC 118 ms
56,044 KB
testcase_04 AC 120 ms
55,916 KB
testcase_05 AC 119 ms
55,820 KB
testcase_06 AC 119 ms
55,732 KB
testcase_07 AC 119 ms
55,768 KB
testcase_08 AC 117 ms
55,824 KB
testcase_09 AC 118 ms
55,772 KB
testcase_10 AC 117 ms
56,144 KB
testcase_11 AC 115 ms
56,180 KB
testcase_12 AC 114 ms
55,844 KB
testcase_13 AC 118 ms
56,184 KB
testcase_14 AC 116 ms
55,796 KB
testcase_15 AC 118 ms
55,924 KB
testcase_16 AC 118 ms
54,060 KB
testcase_17 AC 117 ms
53,988 KB
testcase_18 AC 117 ms
55,860 KB
testcase_19 AC 120 ms
56,864 KB
testcase_20 AC 119 ms
56,184 KB
testcase_21 AC 120 ms
56,032 KB
testcase_22 AC 123 ms
55,920 KB
testcase_23 AC 118 ms
56,216 KB
testcase_24 AC 119 ms
55,888 KB
testcase_25 AC 123 ms
55,988 KB
testcase_26 AC 117 ms
55,736 KB
testcase_27 AC 121 ms
55,724 KB
testcase_28 AC 118 ms
55,728 KB
testcase_29 AC 118 ms
56,060 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.%02d", y, z);
    }
}
0