結果

問題 No.56 消費税
ユーザー fkwnw3_1243fkwnw3_1243
提出日時 2017-04-25 21:43:02
言語 Java21
(openjdk 21)
結果
AC  
実行時間 44 ms / 5,000 ms
コード長 477 bytes
コンパイル時間 1,818 ms
コンパイル使用メモリ 71,436 KB
実行使用メモリ 50,140 KB
最終ジャッジ日時 2023-10-11 10:09:25
合計ジャッジ時間 4,049 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
49,708 KB
testcase_01 AC 41 ms
49,460 KB
testcase_02 AC 42 ms
49,668 KB
testcase_03 AC 40 ms
49,440 KB
testcase_04 AC 41 ms
49,548 KB
testcase_05 AC 41 ms
49,432 KB
testcase_06 AC 41 ms
49,404 KB
testcase_07 AC 40 ms
49,620 KB
testcase_08 AC 41 ms
49,984 KB
testcase_09 AC 40 ms
49,480 KB
testcase_10 AC 40 ms
49,808 KB
testcase_11 AC 41 ms
49,684 KB
testcase_12 AC 40 ms
49,480 KB
testcase_13 AC 40 ms
49,588 KB
testcase_14 AC 40 ms
49,912 KB
testcase_15 AC 40 ms
49,676 KB
testcase_16 AC 40 ms
49,436 KB
testcase_17 AC 41 ms
49,504 KB
testcase_18 AC 41 ms
49,592 KB
testcase_19 AC 41 ms
49,652 KB
testcase_20 AC 43 ms
49,504 KB
testcase_21 AC 41 ms
49,624 KB
testcase_22 AC 40 ms
49,568 KB
testcase_23 AC 41 ms
50,140 KB
testcase_24 AC 40 ms
49,572 KB
testcase_25 AC 41 ms
49,628 KB
testcase_26 AC 44 ms
49,444 KB
権限があれば一括ダウンロードができます

ソースコード

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 + (D * P)/100));
    }

}
0