結果

問題 No.56 消費税
ユーザー syusyu
提出日時 2020-08-25 20:27:04
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 5,000 ms
コード長 274 bytes
コンパイル時間 2,210 ms
コンパイル使用メモリ 74,196 KB
実行使用メモリ 41,640 KB
最終ジャッジ日時 2024-04-24 04:46:48
合計ジャッジ時間 6,867 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
41,640 KB
testcase_01 AC 134 ms
41,292 KB
testcase_02 AC 128 ms
41,532 KB
testcase_03 AC 129 ms
41,260 KB
testcase_04 AC 129 ms
41,148 KB
testcase_05 AC 115 ms
40,100 KB
testcase_06 AC 131 ms
40,956 KB
testcase_07 AC 129 ms
41,136 KB
testcase_08 AC 131 ms
41,280 KB
testcase_09 AC 129 ms
41,392 KB
testcase_10 AC 133 ms
41,368 KB
testcase_11 AC 133 ms
41,200 KB
testcase_12 AC 133 ms
41,340 KB
testcase_13 AC 130 ms
41,296 KB
testcase_14 AC 131 ms
41,380 KB
testcase_15 AC 132 ms
41,332 KB
testcase_16 AC 128 ms
41,252 KB
testcase_17 AC 130 ms
41,004 KB
testcase_18 AC 134 ms
41,316 KB
testcase_19 AC 134 ms
41,404 KB
testcase_20 AC 132 ms
41,352 KB
testcase_21 AC 132 ms
41,244 KB
testcase_22 AC 134 ms
41,392 KB
testcase_23 AC 131 ms
41,364 KB
testcase_24 AC 132 ms
41,180 KB
testcase_25 AC 133 ms
41,548 KB
testcase_26 AC 128 ms
41,152 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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