結果

問題 No.56 消費税
ユーザー howakurohowakuro
提出日時 2015-09-25 21:52:13
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 277 bytes
コンパイル時間 4,870 ms
コンパイル使用メモリ 71,396 KB
実行使用メモリ 58,580 KB
最終ジャッジ日時 2023-09-26 15:08:25
合計ジャッジ時間 10,575 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 141 ms
55,928 KB
testcase_01 AC 137 ms
55,696 KB
testcase_02 AC 135 ms
56,172 KB
testcase_03 WA -
testcase_04 AC 134 ms
55,908 KB
testcase_05 AC 135 ms
55,856 KB
testcase_06 AC 136 ms
56,416 KB
testcase_07 AC 140 ms
55,980 KB
testcase_08 AC 139 ms
55,900 KB
testcase_09 AC 138 ms
55,852 KB
testcase_10 AC 137 ms
56,172 KB
testcase_11 AC 140 ms
55,928 KB
testcase_12 AC 135 ms
55,672 KB
testcase_13 AC 138 ms
56,240 KB
testcase_14 AC 137 ms
56,024 KB
testcase_15 AC 137 ms
55,696 KB
testcase_16 AC 136 ms
55,860 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;

public class ComsunptionTax {
	static Scanner scan= new Scanner(System.in);
	public static void main(String[] args) {
		double D = scan.nextDouble();
		double P = scan.nextDouble()/100+1;
		int Price = (int) (D*P);
		System.out.println(Price);

	}

}
0