結果

問題 No.56 消費税
ユーザー Daigo HIROOKADaigo HIROOKA
提出日時 2018-05-11 21:51:05
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 353 bytes
コンパイル時間 3,284 ms
コンパイル使用メモリ 72,572 KB
実行使用メモリ 57,772 KB
最終ジャッジ日時 2023-09-10 12:44:17
合計ジャッジ時間 8,254 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
55,964 KB
testcase_01 AC 133 ms
55,804 KB
testcase_02 AC 136 ms
56,568 KB
testcase_03 WA -
testcase_04 AC 134 ms
56,316 KB
testcase_05 AC 134 ms
55,932 KB
testcase_06 AC 134 ms
56,060 KB
testcase_07 AC 134 ms
56,212 KB
testcase_08 AC 133 ms
54,244 KB
testcase_09 AC 134 ms
56,048 KB
testcase_10 AC 136 ms
56,268 KB
testcase_11 AC 135 ms
56,276 KB
testcase_12 AC 136 ms
56,328 KB
testcase_13 AC 134 ms
56,568 KB
testcase_14 AC 134 ms
56,116 KB
testcase_15 AC 133 ms
53,924 KB
testcase_16 AC 139 ms
55,636 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.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class ConsumTax{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        Double D = sc.nextDouble();
        Double P = sc.nextDouble();

        System.out.println(Math.round(Math.floor(D*(1+P/100))));
    }
}


0