結果

問題 No.56 消費税
ユーザー eagleeagle
提出日時 2022-05-26 15:18:55
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 5,000 ms
コード長 384 bytes
コンパイル時間 1,920 ms
コンパイル使用メモリ 74,536 KB
実行使用メモリ 57,648 KB
最終ジャッジ日時 2023-10-20 19:27:47
合計ジャッジ時間 6,210 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
57,416 KB
testcase_01 AC 125 ms
57,416 KB
testcase_02 AC 125 ms
57,456 KB
testcase_03 AC 125 ms
57,432 KB
testcase_04 AC 123 ms
57,448 KB
testcase_05 AC 118 ms
57,380 KB
testcase_06 AC 125 ms
57,428 KB
testcase_07 AC 118 ms
57,596 KB
testcase_08 AC 117 ms
57,408 KB
testcase_09 AC 125 ms
55,632 KB
testcase_10 AC 125 ms
55,644 KB
testcase_11 AC 119 ms
57,504 KB
testcase_12 AC 117 ms
57,260 KB
testcase_13 AC 119 ms
57,248 KB
testcase_14 AC 118 ms
57,304 KB
testcase_15 AC 109 ms
53,728 KB
testcase_16 AC 117 ms
57,408 KB
testcase_17 AC 121 ms
57,648 KB
testcase_18 AC 119 ms
57,112 KB
testcase_19 AC 117 ms
57,352 KB
testcase_20 AC 125 ms
57,600 KB
testcase_21 AC 120 ms
57,456 KB
testcase_22 AC 121 ms
57,152 KB
testcase_23 AC 119 ms
57,320 KB
testcase_24 AC 123 ms
57,448 KB
testcase_25 AC 124 ms
57,616 KB
testcase_26 AC 125 ms
57,432 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		//買おうとしている消費税を含まない品物の金額
		int D = sc.nextInt();
		//国の消費税率
		int P = sc.nextInt();
		int ans = D + D * P /100;
		System.out.println(ans);
	}
}
0