結果

問題 No.56 消費税
ユーザー fkwnw3_1243fkwnw3_1243
提出日時 2017-04-25 21:41:13
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 477 bytes
コンパイル時間 2,013 ms
コンパイル使用メモリ 71,548 KB
実行使用メモリ 50,168 KB
最終ジャッジ日時 2023-10-11 10:07:41
合計ジャッジ時間 4,148 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
49,404 KB
testcase_01 AC 42 ms
49,412 KB
testcase_02 AC 43 ms
47,688 KB
testcase_03 WA -
testcase_04 AC 41 ms
49,596 KB
testcase_05 AC 41 ms
49,588 KB
testcase_06 AC 43 ms
49,736 KB
testcase_07 AC 41 ms
49,676 KB
testcase_08 AC 42 ms
49,576 KB
testcase_09 AC 43 ms
49,444 KB
testcase_10 AC 41 ms
49,508 KB
testcase_11 AC 43 ms
49,688 KB
testcase_12 AC 42 ms
49,684 KB
testcase_13 AC 42 ms
49,608 KB
testcase_14 AC 41 ms
49,676 KB
testcase_15 AC 42 ms
49,584 KB
testcase_16 AC 41 ms
49,416 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader reader =new BufferedReader(new InputStreamReader(System.in));
        String[] inputs = reader.readLine().split(" ");
        long D = Long.parseLong(inputs[0]);
        double P = Double.parseDouble(inputs[1]);

        System.out.println((int) (D * (1+(P/100))));
    }

}
0