結果

問題 No.56 消費税
ユーザー aaaaasatoriaaaaasatori
提出日時 2018-02-05 09:33:10
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 271 bytes
コンパイル時間 3,383 ms
コンパイル使用メモリ 71,248 KB
実行使用メモリ 55,996 KB
最終ジャッジ日時 2023-09-20 17:46:24
合計ジャッジ時間 8,173 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
55,688 KB
testcase_01 AC 127 ms
55,332 KB
testcase_02 AC 128 ms
55,512 KB
testcase_03 AC 128 ms
55,684 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 131 ms
55,808 KB
testcase_08 AC 131 ms
55,720 KB
testcase_09 AC 130 ms
55,860 KB
testcase_10 AC 132 ms
55,632 KB
testcase_11 AC 130 ms
53,396 KB
testcase_12 AC 128 ms
55,656 KB
testcase_13 AC 130 ms
55,524 KB
testcase_14 AC 129 ms
53,892 KB
testcase_15 AC 132 ms
55,628 KB
testcase_16 AC 132 ms
55,816 KB
testcase_17 WA -
testcase_18 AC 129 ms
55,532 KB
testcase_19 AC 133 ms
55,768 KB
testcase_20 AC 131 ms
55,464 KB
testcase_21 WA -
testcase_22 AC 132 ms
55,900 KB
testcase_23 AC 130 ms
55,600 KB
testcase_24 AC 130 ms
55,652 KB
testcase_25 AC 131 ms
55,460 KB
testcase_26 AC 130 ms
55,684 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No56syouhizei {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		float D = sc.nextInt(); // 値段
		float P = sc.nextInt(); // 消費税(%)
		
		System.out.println((int)(D * (1 + P / 100)));
	}
}
0