結果

問題 No.56 消費税
ユーザー MatumoMatumo
提出日時 2018-07-13 20:38:41
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 248 bytes
コンパイル時間 3,034 ms
コンパイル使用メモリ 73,692 KB
実行使用メモリ 41,816 KB
最終ジャッジ日時 2024-04-17 11:04:01
合計ジャッジ時間 6,498 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
40,700 KB
testcase_01 AC 123 ms
41,816 KB
testcase_02 AC 114 ms
41,148 KB
testcase_03 WA -
testcase_04 AC 120 ms
41,276 KB
testcase_05 AC 120 ms
41,024 KB
testcase_06 AC 115 ms
41,336 KB
testcase_07 AC 104 ms
40,072 KB
testcase_08 AC 108 ms
40,124 KB
testcase_09 AC 117 ms
41,148 KB
testcase_10 AC 122 ms
41,408 KB
testcase_11 AC 118 ms
41,448 KB
testcase_12 AC 117 ms
41,008 KB
testcase_13 AC 121 ms
41,116 KB
testcase_14 AC 117 ms
41,260 KB
testcase_15 AC 118 ms
41,200 KB
testcase_16 AC 121 ms
41,308 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 Main {

	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {

		int d = sc.nextInt();
		int p = sc.nextInt();
		
		System.out.println((int)(d * (1 + (p / 100.0))));
    }
}
0