結果

問題 No.56 消費税
ユーザー kashiwagi513kashiwagi513
提出日時 2019-02-19 21:33:08
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 338 bytes
コンパイル時間 2,187 ms
コンパイル使用メモリ 75,088 KB
実行使用メモリ 54,116 KB
最終ジャッジ日時 2024-04-20 22:20:24
合計ジャッジ時間 6,012 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
41,464 KB
testcase_01 AC 116 ms
41,360 KB
testcase_02 AC 114 ms
41,216 KB
testcase_03 AC 103 ms
40,308 KB
testcase_04 AC 107 ms
40,348 KB
testcase_05 AC 107 ms
40,028 KB
testcase_06 AC 118 ms
41,144 KB
testcase_07 AC 108 ms
40,760 KB
testcase_08 AC 114 ms
41,320 KB
testcase_09 AC 98 ms
39,936 KB
testcase_10 WA -
testcase_11 AC 110 ms
40,684 KB
testcase_12 AC 117 ms
41,392 KB
testcase_13 AC 118 ms
41,468 KB
testcase_14 AC 112 ms
40,980 KB
testcase_15 AC 104 ms
40,120 KB
testcase_16 AC 114 ms
40,728 KB
testcase_17 AC 118 ms
41,060 KB
testcase_18 AC 114 ms
41,088 KB
testcase_19 AC 100 ms
40,024 KB
testcase_20 AC 118 ms
41,688 KB
testcase_21 AC 118 ms
40,892 KB
testcase_22 AC 111 ms
41,044 KB
testcase_23 AC 114 ms
40,872 KB
testcase_24 AC 103 ms
40,244 KB
testcase_25 AC 100 ms
40,308 KB
testcase_26 AC 114 ms
41,132 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.lang.*;
import java.io.*;

class Main {
    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        int price = Integer.parseInt(sc.next());
        int tax = Integer.parseInt(sc.next());
        System.out.println(price+(int)(Math.floor(price*(tax/100.0))));
    }
}
0