結果

問題 No.56 消費税
ユーザー syusyu
提出日時 2020-08-25 20:22:58
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 292 bytes
コンパイル時間 2,071 ms
コンパイル使用メモリ 73,572 KB
実行使用メモリ 41,892 KB
最終ジャッジ日時 2024-04-24 04:46:31
合計ジャッジ時間 7,048 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 140 ms
41,656 KB
testcase_01 AC 138 ms
41,568 KB
testcase_02 AC 144 ms
41,892 KB
testcase_03 WA -
testcase_04 AC 143 ms
41,484 KB
testcase_05 AC 125 ms
40,892 KB
testcase_06 AC 138 ms
41,784 KB
testcase_07 AC 140 ms
41,448 KB
testcase_08 AC 145 ms
41,508 KB
testcase_09 AC 143 ms
41,360 KB
testcase_10 AC 139 ms
41,544 KB
testcase_11 AC 140 ms
41,760 KB
testcase_12 AC 138 ms
41,780 KB
testcase_13 AC 141 ms
41,516 KB
testcase_14 AC 141 ms
41,476 KB
testcase_15 AC 147 ms
41,536 KB
testcase_16 AC 139 ms
41,340 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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