結果

問題 No.56 消費税
ユーザー HaleakalaHaleakala
提出日時 2018-02-18 22:32:00
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 5,000 ms
コード長 348 bytes
コンパイル時間 4,473 ms
コンパイル使用メモリ 72,872 KB
実行使用メモリ 55,996 KB
最終ジャッジ日時 2023-09-18 01:51:03
合計ジャッジ時間 9,179 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,824 KB
testcase_01 AC 120 ms
55,464 KB
testcase_02 AC 122 ms
55,700 KB
testcase_03 AC 124 ms
55,636 KB
testcase_04 AC 123 ms
55,740 KB
testcase_05 AC 124 ms
55,312 KB
testcase_06 AC 121 ms
55,324 KB
testcase_07 AC 124 ms
55,996 KB
testcase_08 AC 122 ms
55,740 KB
testcase_09 AC 124 ms
55,452 KB
testcase_10 AC 124 ms
55,508 KB
testcase_11 AC 123 ms
55,308 KB
testcase_12 AC 122 ms
55,760 KB
testcase_13 AC 122 ms
55,708 KB
testcase_14 AC 122 ms
55,716 KB
testcase_15 AC 122 ms
55,940 KB
testcase_16 AC 121 ms
55,324 KB
testcase_17 AC 122 ms
55,604 KB
testcase_18 AC 121 ms
55,288 KB
testcase_19 AC 123 ms
55,800 KB
testcase_20 AC 121 ms
55,732 KB
testcase_21 AC 121 ms
55,736 KB
testcase_22 AC 121 ms
55,596 KB
testcase_23 AC 121 ms
55,828 KB
testcase_24 AC 121 ms
55,440 KB
testcase_25 AC 124 ms
55,676 KB
testcase_26 AC 125 ms
55,556 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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

        int price = Integer.valueOf(sc.next());
        int tax = Integer.valueOf(sc.next());

        double includeTax = price * (100 + tax) / 100;
        System.out.println((int) Math.floor(includeTax));
	}
}
0