結果

問題 No.56 消費税
ユーザー aaaaasatoriaaaaasatori
提出日時 2018-02-05 10:02:39
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 5,000 ms
コード長 277 bytes
コンパイル時間 3,112 ms
コンパイル使用メモリ 71,192 KB
実行使用メモリ 55,984 KB
最終ジャッジ日時 2023-09-20 18:48:33
合計ジャッジ時間 8,241 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
55,608 KB
testcase_01 AC 127 ms
55,708 KB
testcase_02 AC 126 ms
55,752 KB
testcase_03 AC 125 ms
55,984 KB
testcase_04 AC 126 ms
55,452 KB
testcase_05 AC 126 ms
55,840 KB
testcase_06 AC 129 ms
55,608 KB
testcase_07 AC 129 ms
55,720 KB
testcase_08 AC 125 ms
55,636 KB
testcase_09 AC 126 ms
55,696 KB
testcase_10 AC 129 ms
55,792 KB
testcase_11 AC 127 ms
55,836 KB
testcase_12 AC 129 ms
55,912 KB
testcase_13 AC 127 ms
55,688 KB
testcase_14 AC 128 ms
55,704 KB
testcase_15 AC 126 ms
55,528 KB
testcase_16 AC 126 ms
55,780 KB
testcase_17 AC 125 ms
55,596 KB
testcase_18 AC 125 ms
55,740 KB
testcase_19 AC 127 ms
55,364 KB
testcase_20 AC 127 ms
55,696 KB
testcase_21 AC 126 ms
55,436 KB
testcase_22 AC 126 ms
55,432 KB
testcase_23 AC 126 ms
55,860 KB
testcase_24 AC 127 ms
55,860 KB
testcase_25 AC 127 ms
55,444 KB
testcase_26 AC 126 ms
55,588 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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

0