結果

問題 No.56 消費税
ユーザー aaaaasatoriaaaaasatori
提出日時 2018-02-05 09:45:51
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 285 bytes
コンパイル時間 6,122 ms
コンパイル使用メモリ 70,740 KB
実行使用メモリ 57,660 KB
最終ジャッジ日時 2023-09-20 18:11:30
合計ジャッジ時間 8,056 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
55,648 KB
testcase_01 AC 127 ms
55,936 KB
testcase_02 AC 128 ms
55,684 KB
testcase_03 WA -
testcase_04 AC 127 ms
55,404 KB
testcase_05 AC 126 ms
55,688 KB
testcase_06 AC 126 ms
55,924 KB
testcase_07 AC 124 ms
55,580 KB
testcase_08 AC 126 ms
55,960 KB
testcase_09 AC 126 ms
55,640 KB
testcase_10 AC 127 ms
55,964 KB
testcase_11 AC 126 ms
55,664 KB
testcase_12 AC 126 ms
55,724 KB
testcase_13 AC 127 ms
55,784 KB
testcase_14 AC 127 ms
55,656 KB
testcase_15 AC 127 ms
55,800 KB
testcase_16 AC 131 ms
55,648 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 No56syouhizei {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		double D = sc.nextInt(); // 値段
		double P = sc.nextInt(); // 消費税(%)
		double A = D * (1 + P / 100);
		System.out.println((int)A);
	}
}

0