結果

問題 No.56 消費税
ユーザー dogwood0424dogwood0424
提出日時 2017-11-29 20:13:49
言語 Java21
(openjdk 21)
結果
AC  
実行時間 131 ms / 5,000 ms
コード長 270 bytes
コンパイル時間 3,825 ms
コンパイル使用メモリ 71,344 KB
実行使用メモリ 56,144 KB
最終ジャッジ日時 2023-08-18 13:44:39
合計ジャッジ時間 7,780 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
55,732 KB
testcase_01 AC 129 ms
55,428 KB
testcase_02 AC 128 ms
55,888 KB
testcase_03 AC 128 ms
55,856 KB
testcase_04 AC 126 ms
55,760 KB
testcase_05 AC 128 ms
55,692 KB
testcase_06 AC 126 ms
55,568 KB
testcase_07 AC 125 ms
55,728 KB
testcase_08 AC 124 ms
55,428 KB
testcase_09 AC 125 ms
55,684 KB
testcase_10 AC 127 ms
56,056 KB
testcase_11 AC 125 ms
55,616 KB
testcase_12 AC 127 ms
55,984 KB
testcase_13 AC 125 ms
55,668 KB
testcase_14 AC 126 ms
55,672 KB
testcase_15 AC 129 ms
55,432 KB
testcase_16 AC 123 ms
55,844 KB
testcase_17 AC 126 ms
55,592 KB
testcase_18 AC 126 ms
55,844 KB
testcase_19 AC 125 ms
55,688 KB
testcase_20 AC 126 ms
55,876 KB
testcase_21 AC 126 ms
56,144 KB
testcase_22 AC 128 ms
56,052 KB
testcase_23 AC 131 ms
56,032 KB
testcase_24 AC 127 ms
55,692 KB
testcase_25 AC 128 ms
55,544 KB
testcase_26 AC 126 ms
55,748 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class No56 {
	public static void main(String[]args) {
		Scanner sc = new Scanner(System.in);
		int D;
		double P;
		D = sc.nextInt();
		P = sc.nextInt();

		int price ;
		price = (int)(D+D*(P/100));



		System.out.println(price);

	}

}
0