結果

問題 No.56 消費税
ユーザー kashiwagi513kashiwagi513
提出日時 2019-02-19 21:36:36
言語 Java19
(openjdk 21)
結果
AC  
実行時間 124 ms / 5,000 ms
コード長 340 bytes
コンパイル時間 2,168 ms
コンパイル使用メモリ 71,988 KB
実行使用メモリ 56,128 KB
最終ジャッジ日時 2023-08-02 22:33:29
合計ジャッジ時間 6,623 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
55,748 KB
testcase_01 AC 121 ms
55,408 KB
testcase_02 AC 120 ms
55,684 KB
testcase_03 AC 120 ms
55,756 KB
testcase_04 AC 124 ms
55,912 KB
testcase_05 AC 121 ms
55,420 KB
testcase_06 AC 119 ms
55,388 KB
testcase_07 AC 119 ms
56,052 KB
testcase_08 AC 118 ms
55,616 KB
testcase_09 AC 119 ms
55,624 KB
testcase_10 AC 119 ms
56,128 KB
testcase_11 AC 117 ms
55,748 KB
testcase_12 AC 118 ms
55,664 KB
testcase_13 AC 116 ms
55,680 KB
testcase_14 AC 121 ms
55,692 KB
testcase_15 AC 119 ms
55,704 KB
testcase_16 AC 120 ms
55,740 KB
testcase_17 AC 120 ms
55,568 KB
testcase_18 AC 119 ms
55,712 KB
testcase_19 AC 119 ms
56,064 KB
testcase_20 AC 119 ms
55,800 KB
testcase_21 AC 116 ms
55,816 KB
testcase_22 AC 118 ms
55,648 KB
testcase_23 AC 118 ms
55,680 KB
testcase_24 AC 119 ms
55,436 KB
testcase_25 AC 120 ms
55,580 KB
testcase_26 AC 118 ms
56,044 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((int)(Math.floor(price+(price*(tax/100.0)))));
    }
}
0