結果

問題 No.56 消費税
ユーザー matsuyoshi30matsuyoshi30
提出日時 2016-02-04 02:04:26
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 5,000 ms
コード長 254 bytes
コンパイル時間 2,064 ms
コンパイル使用メモリ 72,244 KB
実行使用メモリ 56,260 KB
最終ジャッジ日時 2023-09-25 03:24:01
合計ジャッジ時間 6,573 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,356 KB
testcase_01 AC 124 ms
55,748 KB
testcase_02 AC 119 ms
55,584 KB
testcase_03 AC 123 ms
55,832 KB
testcase_04 AC 124 ms
55,952 KB
testcase_05 AC 123 ms
55,708 KB
testcase_06 AC 124 ms
55,688 KB
testcase_07 AC 124 ms
55,772 KB
testcase_08 AC 125 ms
55,792 KB
testcase_09 AC 122 ms
55,972 KB
testcase_10 AC 124 ms
55,640 KB
testcase_11 AC 123 ms
55,344 KB
testcase_12 AC 127 ms
55,868 KB
testcase_13 AC 127 ms
55,744 KB
testcase_14 AC 126 ms
55,792 KB
testcase_15 AC 125 ms
55,656 KB
testcase_16 AC 125 ms
55,624 KB
testcase_17 AC 125 ms
55,704 KB
testcase_18 AC 124 ms
55,792 KB
testcase_19 AC 126 ms
55,472 KB
testcase_20 AC 125 ms
55,940 KB
testcase_21 AC 126 ms
55,988 KB
testcase_22 AC 126 ms
56,260 KB
testcase_23 AC 126 ms
55,676 KB
testcase_24 AC 125 ms
55,884 KB
testcase_25 AC 126 ms
55,652 KB
testcase_26 AC 125 ms
56,184 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Test {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);

		int D = in.nextInt();
		int P = in.nextInt();

		int ans = (int)Math.floor(D * (P + 100) / 100);

		System.out.println(ans);
	}
}
0