結果

問題 No.56 消費税
ユーザー ryosuke0825ryosuke0825
提出日時 2018-04-06 00:04:25
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 251 bytes
コンパイル時間 3,055 ms
コンパイル使用メモリ 71,784 KB
実行使用メモリ 58,552 KB
最終ジャッジ日時 2023-09-08 17:54:15
合計ジャッジ時間 7,466 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
55,572 KB
testcase_01 AC 120 ms
56,180 KB
testcase_02 AC 120 ms
55,856 KB
testcase_03 WA -
testcase_04 AC 121 ms
55,456 KB
testcase_05 AC 120 ms
56,260 KB
testcase_06 AC 121 ms
54,012 KB
testcase_07 AC 120 ms
56,028 KB
testcase_08 AC 120 ms
54,252 KB
testcase_09 AC 120 ms
56,268 KB
testcase_10 AC 123 ms
56,036 KB
testcase_11 AC 121 ms
56,436 KB
testcase_12 AC 122 ms
56,052 KB
testcase_13 AC 118 ms
55,940 KB
testcase_14 AC 118 ms
55,824 KB
testcase_15 AC 120 ms
56,232 KB
testcase_16 AC 124 ms
56,316 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 No56 {

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

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

	}

}
0