結果

問題 No.56 消費税
ユーザー jimanojimano
提出日時 2015-12-27 17:12:23
言語 Java21
(openjdk 21)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 278 bytes
コンパイル時間 3,328 ms
コンパイル使用メモリ 71,964 KB
実行使用メモリ 56,380 KB
最終ジャッジ日時 2023-09-25 03:18:37
合計ジャッジ時間 7,968 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,604 KB
testcase_01 AC 125 ms
55,776 KB
testcase_02 AC 126 ms
55,688 KB
testcase_03 AC 125 ms
55,852 KB
testcase_04 AC 125 ms
55,692 KB
testcase_05 AC 128 ms
55,652 KB
testcase_06 AC 124 ms
55,956 KB
testcase_07 AC 125 ms
55,556 KB
testcase_08 AC 124 ms
55,800 KB
testcase_09 AC 128 ms
55,788 KB
testcase_10 WA -
testcase_11 AC 125 ms
56,024 KB
testcase_12 AC 130 ms
55,932 KB
testcase_13 AC 125 ms
56,380 KB
testcase_14 AC 126 ms
55,556 KB
testcase_15 AC 125 ms
55,864 KB
testcase_16 AC 124 ms
55,700 KB
testcase_17 AC 125 ms
55,900 KB
testcase_18 AC 126 ms
55,872 KB
testcase_19 AC 124 ms
55,872 KB
testcase_20 AC 124 ms
55,944 KB
testcase_21 AC 127 ms
55,984 KB
testcase_22 AC 125 ms
55,872 KB
testcase_23 AC 124 ms
55,804 KB
testcase_24 AC 125 ms
55,972 KB
testcase_25 AC 123 ms
55,524 KB
testcase_26 AC 126 ms
55,964 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No56 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int price = sc.nextInt();
		double tax = sc.nextInt();
		double taxlate = tax / 100;
		
		System.out.println( price + (int)(price * taxlate) );
	}
}
0