結果

問題 No.56 消費税
ユーザー DevbotBotDevbotBot
提出日時 2015-06-18 13:12:56
言語 Java21
(openjdk 21)
結果
AC  
実行時間 47 ms / 5,000 ms
コード長 458 bytes
コンパイル時間 3,338 ms
コンパイル使用メモリ 71,792 KB
実行使用メモリ 49,780 KB
最終ジャッジ日時 2023-09-25 03:03:48
合計ジャッジ時間 4,326 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
49,708 KB
testcase_01 AC 46 ms
49,496 KB
testcase_02 AC 44 ms
49,368 KB
testcase_03 AC 46 ms
49,356 KB
testcase_04 AC 45 ms
49,456 KB
testcase_05 AC 46 ms
49,476 KB
testcase_06 AC 46 ms
49,428 KB
testcase_07 AC 45 ms
49,364 KB
testcase_08 AC 45 ms
47,408 KB
testcase_09 AC 45 ms
49,780 KB
testcase_10 AC 44 ms
49,652 KB
testcase_11 AC 44 ms
49,468 KB
testcase_12 AC 44 ms
49,360 KB
testcase_13 AC 44 ms
49,428 KB
testcase_14 AC 44 ms
49,740 KB
testcase_15 AC 45 ms
49,560 KB
testcase_16 AC 45 ms
49,316 KB
testcase_17 AC 45 ms
49,576 KB
testcase_18 AC 47 ms
49,380 KB
testcase_19 AC 45 ms
49,372 KB
testcase_20 AC 45 ms
49,496 KB
testcase_21 AC 45 ms
49,416 KB
testcase_22 AC 45 ms
49,780 KB
testcase_23 AC 45 ms
49,708 KB
testcase_24 AC 45 ms
49,472 KB
testcase_25 AC 45 ms
49,352 KB
testcase_26 AC 45 ms
49,364 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

class N056 {
    public static void main(String args[]) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] lines = line.split(" ");
        double d = Double.parseDouble(lines[0]);
        int p = Integer.parseInt(lines[1]);
        System.out.println((int)(d * (100 + p) / 100));
    }
}
0