結果

問題 No.56 消費税
ユーザー koukonkokoukonko
提出日時 2015-12-07 17:15:27
言語 Java21
(openjdk 21)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 507 bytes
コンパイル時間 3,921 ms
コンパイル使用メモリ 71,316 KB
実行使用メモリ 49,860 KB
最終ジャッジ日時 2023-09-25 03:16:27
合計ジャッジ時間 4,824 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
49,312 KB
testcase_01 AC 43 ms
49,184 KB
testcase_02 AC 43 ms
49,304 KB
testcase_03 AC 43 ms
49,480 KB
testcase_04 AC 43 ms
49,272 KB
testcase_05 AC 44 ms
49,280 KB
testcase_06 AC 43 ms
49,292 KB
testcase_07 AC 42 ms
49,336 KB
testcase_08 AC 43 ms
49,508 KB
testcase_09 AC 43 ms
49,700 KB
testcase_10 WA -
testcase_11 AC 43 ms
49,532 KB
testcase_12 AC 42 ms
49,268 KB
testcase_13 AC 43 ms
49,376 KB
testcase_14 AC 43 ms
49,376 KB
testcase_15 AC 43 ms
49,324 KB
testcase_16 AC 42 ms
49,416 KB
testcase_17 AC 43 ms
49,652 KB
testcase_18 AC 43 ms
49,320 KB
testcase_19 AC 43 ms
49,188 KB
testcase_20 AC 43 ms
49,684 KB
testcase_21 AC 43 ms
49,368 KB
testcase_22 AC 44 ms
49,860 KB
testcase_23 AC 43 ms
49,440 KB
testcase_24 AC 43 ms
49,264 KB
testcase_25 AC 42 ms
49,384 KB
testcase_26 AC 43 ms
49,276 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) {
		BufferedReader buff = new BufferedReader(new InputStreamReader(System.in));

		try {
			String[] box = buff.readLine().split(" ");
			int price = Integer.parseInt(box[0]);
			int tax = Integer.parseInt(box[1]);
			System.out.println(price + (int)(price * (tax / 100d)));
		} catch (NumberFormatException e) {

		} catch (IOException e) {

		}
	}
}
0