結果

問題 No.56 消費税
ユーザー ryosuke0825ryosuke0825
提出日時 2018-04-06 00:21:50
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 5,000 ms
コード長 265 bytes
コンパイル時間 3,335 ms
コンパイル使用メモリ 71,768 KB
実行使用メモリ 56,436 KB
最終ジャッジ日時 2023-09-08 17:54:53
合計ジャッジ時間 7,612 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,700 KB
testcase_01 AC 117 ms
56,276 KB
testcase_02 AC 119 ms
55,628 KB
testcase_03 AC 121 ms
56,100 KB
testcase_04 AC 118 ms
55,832 KB
testcase_05 AC 120 ms
55,900 KB
testcase_06 AC 124 ms
55,808 KB
testcase_07 AC 117 ms
56,304 KB
testcase_08 AC 119 ms
56,412 KB
testcase_09 AC 118 ms
56,436 KB
testcase_10 AC 118 ms
55,992 KB
testcase_11 AC 119 ms
56,032 KB
testcase_12 AC 122 ms
55,972 KB
testcase_13 AC 121 ms
55,956 KB
testcase_14 AC 123 ms
55,736 KB
testcase_15 AC 123 ms
56,048 KB
testcase_16 AC 117 ms
55,516 KB
testcase_17 AC 120 ms
56,192 KB
testcase_18 AC 118 ms
55,540 KB
testcase_19 AC 119 ms
55,952 KB
testcase_20 AC 119 ms
55,796 KB
testcase_21 AC 119 ms
56,284 KB
testcase_22 AC 121 ms
56,220 KB
testcase_23 AC 122 ms
55,736 KB
testcase_24 AC 118 ms
55,544 KB
testcase_25 AC 118 ms
55,884 KB
testcase_26 AC 121 ms
55,744 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No56 {

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

		int p = sc.nextInt();
		int t = sc.nextInt();

		double re = p * (100 + t) / 100;
		System.out.println((int) Math.floor(re));

	}

}
0