結果

問題 No.56 消費税
ユーザー face4face4
提出日時 2018-04-09 17:42:47
言語 Java21
(openjdk 21)
結果
AC  
実行時間 44 ms / 5,000 ms
コード長 444 bytes
コンパイル時間 1,931 ms
コンパイル使用メモリ 72,436 KB
実行使用メモリ 49,940 KB
最終ジャッジ日時 2023-09-09 03:28:36
合計ジャッジ時間 4,627 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
49,340 KB
testcase_01 AC 42 ms
49,448 KB
testcase_02 AC 41 ms
49,548 KB
testcase_03 AC 42 ms
49,276 KB
testcase_04 AC 44 ms
49,608 KB
testcase_05 AC 41 ms
49,940 KB
testcase_06 AC 41 ms
49,504 KB
testcase_07 AC 41 ms
49,236 KB
testcase_08 AC 41 ms
49,424 KB
testcase_09 AC 40 ms
47,852 KB
testcase_10 AC 41 ms
49,612 KB
testcase_11 AC 42 ms
49,396 KB
testcase_12 AC 42 ms
49,472 KB
testcase_13 AC 42 ms
49,604 KB
testcase_14 AC 41 ms
49,300 KB
testcase_15 AC 42 ms
49,232 KB
testcase_16 AC 41 ms
49,424 KB
testcase_17 AC 43 ms
49,392 KB
testcase_18 AC 42 ms
49,784 KB
testcase_19 AC 43 ms
49,436 KB
testcase_20 AC 42 ms
49,304 KB
testcase_21 AC 43 ms
49,752 KB
testcase_22 AC 43 ms
49,376 KB
testcase_23 AC 43 ms
49,308 KB
testcase_24 AC 41 ms
49,512 KB
testcase_25 AC 41 ms
49,520 KB
testcase_26 AC 41 ms
49,428 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;

class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] input = br.readLine().split(" ");

        int d = Integer.parseInt(input[0]);
        int p = Integer.parseInt(input[1]);

        System.out.println((d*(100+p)/100));
    }
}
0