結果

問題 No.56 消費税
ユーザー kazapyon27kazapyon27
提出日時 2017-05-06 21:38:51
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 342 bytes
コンパイル時間 6,506 ms
コンパイル使用メモリ 71,960 KB
実行使用メモリ 57,572 KB
最終ジャッジ日時 2023-10-12 15:17:45
合計ジャッジ時間 11,177 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,860 KB
testcase_01 AC 120 ms
56,204 KB
testcase_02 AC 119 ms
56,284 KB
testcase_03 AC 118 ms
54,340 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 121 ms
55,900 KB
testcase_09 AC 119 ms
55,884 KB
testcase_10 AC 119 ms
55,760 KB
testcase_11 AC 120 ms
56,036 KB
testcase_12 AC 121 ms
55,788 KB
testcase_13 AC 122 ms
57,572 KB
testcase_14 AC 122 ms
55,800 KB
testcase_15 AC 121 ms
56,000 KB
testcase_16 AC 122 ms
55,756 KB
testcase_17 AC 121 ms
56,060 KB
testcase_18 AC 122 ms
56,004 KB
testcase_19 AC 121 ms
55,712 KB
testcase_20 AC 122 ms
55,976 KB
testcase_21 AC 123 ms
55,572 KB
testcase_22 AC 121 ms
55,996 KB
testcase_23 AC 131 ms
55,720 KB
testcase_24 AC 121 ms
56,132 KB
testcase_25 AC 119 ms
55,744 KB
testcase_26 AC 123 ms
56,000 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

/*No.56 消費税*/
import java.util.*;
public class No56 {
	public static void main(String[] args) {
		try(Scanner input = new Scanner(System.in)){
			byte tax;
			int zeinuki;
			zeinuki=input.nextInt();
			tax=input.nextByte();
			System.out.println((int)(zeinuki+zeinuki*tax/100f));
		}catch(Exception e){
			e.printStackTrace();
		}
	}
}
0