結果

問題 No.56 消費税
ユーザー Hiroaki KonoHiroaki Kono
提出日時 2017-10-26 21:54:05
言語 Java21
(openjdk 21)
結果
AC  
実行時間 146 ms / 5,000 ms
コード長 280 bytes
コンパイル時間 3,294 ms
コンパイル使用メモリ 73,992 KB
実行使用メモリ 54,508 KB
最終ジャッジ日時 2024-05-01 15:18:19
合計ジャッジ時間 7,812 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 142 ms
54,012 KB
testcase_01 AC 145 ms
54,236 KB
testcase_02 AC 135 ms
54,112 KB
testcase_03 AC 135 ms
54,016 KB
testcase_04 AC 146 ms
54,196 KB
testcase_05 AC 142 ms
54,088 KB
testcase_06 AC 138 ms
54,032 KB
testcase_07 AC 140 ms
54,072 KB
testcase_08 AC 142 ms
54,140 KB
testcase_09 AC 137 ms
54,328 KB
testcase_10 AC 136 ms
54,200 KB
testcase_11 AC 141 ms
54,140 KB
testcase_12 AC 140 ms
54,268 KB
testcase_13 AC 140 ms
54,272 KB
testcase_14 AC 137 ms
54,256 KB
testcase_15 AC 136 ms
54,264 KB
testcase_16 AC 146 ms
54,220 KB
testcase_17 AC 137 ms
54,432 KB
testcase_18 AC 141 ms
54,136 KB
testcase_19 AC 138 ms
54,200 KB
testcase_20 AC 137 ms
54,152 KB
testcase_21 AC 137 ms
54,048 KB
testcase_22 AC 139 ms
54,076 KB
testcase_23 AC 139 ms
54,232 KB
testcase_24 AC 138 ms
54,004 KB
testcase_25 AC 138 ms
54,508 KB
testcase_26 AC 140 ms
53,888 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No56 {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int price = s.nextInt();
        double tax = s.nextDouble();
        System.out.println((int) (price + price * (tax / 100)));
    }
}
0