結果

問題 No.56 消費税
ユーザー kashiwagi513kashiwagi513
提出日時 2019-02-19 21:36:36
言語 Java21
(openjdk 21)
結果
AC  
実行時間 142 ms / 5,000 ms
コード長 340 bytes
コンパイル時間 2,109 ms
コンパイル使用メモリ 74,660 KB
実行使用メモリ 54,116 KB
最終ジャッジ日時 2024-04-20 22:25:04
合計ジャッジ時間 5,870 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 114 ms
53,788 KB
testcase_01 AC 107 ms
52,760 KB
testcase_02 AC 121 ms
53,924 KB
testcase_03 AC 128 ms
53,668 KB
testcase_04 AC 105 ms
52,756 KB
testcase_05 AC 112 ms
54,116 KB
testcase_06 AC 109 ms
53,832 KB
testcase_07 AC 119 ms
53,904 KB
testcase_08 AC 142 ms
53,964 KB
testcase_09 AC 137 ms
53,932 KB
testcase_10 AC 116 ms
53,920 KB
testcase_11 AC 116 ms
53,876 KB
testcase_12 AC 103 ms
52,808 KB
testcase_13 AC 116 ms
53,916 KB
testcase_14 AC 100 ms
52,620 KB
testcase_15 AC 113 ms
53,792 KB
testcase_16 AC 102 ms
52,820 KB
testcase_17 AC 101 ms
52,920 KB
testcase_18 AC 118 ms
53,704 KB
testcase_19 AC 120 ms
53,776 KB
testcase_20 AC 113 ms
54,008 KB
testcase_21 AC 109 ms
53,912 KB
testcase_22 AC 109 ms
53,928 KB
testcase_23 AC 101 ms
52,968 KB
testcase_24 AC 97 ms
52,520 KB
testcase_25 AC 112 ms
54,032 KB
testcase_26 AC 104 ms
52,816 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