結果

問題 No.56 消費税
ユーザー springspring
提出日時 2019-06-12 14:50:19
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 5,000 ms
コード長 313 bytes
コンパイル時間 2,312 ms
コンパイル使用メモリ 73,624 KB
実行使用メモリ 54,572 KB
最終ジャッジ日時 2024-04-19 02:23:41
合計ジャッジ時間 6,633 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
53,988 KB
testcase_01 AC 115 ms
52,964 KB
testcase_02 AC 125 ms
54,044 KB
testcase_03 AC 113 ms
53,072 KB
testcase_04 AC 122 ms
53,928 KB
testcase_05 AC 122 ms
54,332 KB
testcase_06 AC 121 ms
53,852 KB
testcase_07 AC 125 ms
54,192 KB
testcase_08 AC 122 ms
54,276 KB
testcase_09 AC 123 ms
54,344 KB
testcase_10 AC 129 ms
54,232 KB
testcase_11 AC 127 ms
54,572 KB
testcase_12 AC 127 ms
54,144 KB
testcase_13 AC 118 ms
54,208 KB
testcase_14 AC 124 ms
54,024 KB
testcase_15 AC 122 ms
54,156 KB
testcase_16 AC 110 ms
53,176 KB
testcase_17 AC 126 ms
54,284 KB
testcase_18 AC 123 ms
54,416 KB
testcase_19 AC 124 ms
53,932 KB
testcase_20 AC 125 ms
54,268 KB
testcase_21 AC 125 ms
54,260 KB
testcase_22 AC 119 ms
53,892 KB
testcase_23 AC 120 ms
54,184 KB
testcase_24 AC 125 ms
54,144 KB
testcase_25 AC 122 ms
54,032 KB
testcase_26 AC 111 ms
52,748 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int price = sc.nextInt();
		int tax = sc.nextInt();
		sc.close();
		double taxT = price*tax/100;
		int taxP = (int)taxT;
		System.out.println(price+taxP);

	}// mainmethod

} // class
0