結果

問題 No.56 消費税
ユーザー ryosuke0825ryosuke0825
提出日時 2018-04-06 00:01:26
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 247 bytes
コンパイル時間 4,036 ms
コンパイル使用メモリ 73,036 KB
実行使用メモリ 57,520 KB
最終ジャッジ日時 2023-09-08 17:54:06
合計ジャッジ時間 8,357 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,764 KB
testcase_01 AC 125 ms
56,008 KB
testcase_02 AC 119 ms
56,440 KB
testcase_03 AC 118 ms
55,708 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 118 ms
54,016 KB
testcase_08 AC 120 ms
55,764 KB
testcase_09 AC 121 ms
56,028 KB
testcase_10 AC 125 ms
55,948 KB
testcase_11 AC 121 ms
55,784 KB
testcase_12 AC 118 ms
55,768 KB
testcase_13 AC 119 ms
55,772 KB
testcase_14 AC 120 ms
55,692 KB
testcase_15 AC 121 ms
55,676 KB
testcase_16 AC 120 ms
56,012 KB
testcase_17 WA -
testcase_18 AC 116 ms
55,748 KB
testcase_19 AC 120 ms
55,720 KB
testcase_20 AC 122 ms
55,876 KB
testcase_21 WA -
testcase_22 AC 123 ms
55,876 KB
testcase_23 AC 121 ms
55,872 KB
testcase_24 AC 121 ms
56,080 KB
testcase_25 AC 119 ms
55,904 KB
testcase_26 AC 121 ms
55,740 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No56 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		float D = sc.nextInt();
		float P = sc.nextInt();

		System.out.println((int)(Math.floor(D * (P / 100 + 1))));
	}
}
0