結果

問題 No.56 消費税
ユーザー mobius_bkstmobius_bkst
提出日時 2015-04-23 19:45:49
言語 Java21
(openjdk 21)
結果
AC  
実行時間 45 ms / 5,000 ms
コード長 616 bytes
コンパイル時間 3,814 ms
コンパイル使用メモリ 77,796 KB
実行使用メモリ 49,704 KB
最終ジャッジ日時 2023-09-25 02:59:09
合計ジャッジ時間 5,845 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
49,364 KB
testcase_01 AC 43 ms
49,220 KB
testcase_02 AC 43 ms
49,256 KB
testcase_03 AC 43 ms
49,288 KB
testcase_04 AC 43 ms
49,244 KB
testcase_05 AC 42 ms
49,164 KB
testcase_06 AC 43 ms
49,172 KB
testcase_07 AC 42 ms
49,440 KB
testcase_08 AC 43 ms
49,208 KB
testcase_09 AC 44 ms
49,308 KB
testcase_10 AC 44 ms
49,176 KB
testcase_11 AC 43 ms
49,208 KB
testcase_12 AC 44 ms
49,704 KB
testcase_13 AC 43 ms
49,204 KB
testcase_14 AC 43 ms
49,172 KB
testcase_15 AC 45 ms
49,232 KB
testcase_16 AC 43 ms
49,172 KB
testcase_17 AC 43 ms
49,200 KB
testcase_18 AC 43 ms
49,176 KB
testcase_19 AC 44 ms
49,392 KB
testcase_20 AC 44 ms
49,304 KB
testcase_21 AC 43 ms
49,112 KB
testcase_22 AC 44 ms
49,312 KB
testcase_23 AC 43 ms
49,388 KB
testcase_24 AC 43 ms
49,248 KB
testcase_25 AC 43 ms
49,328 KB
testcase_26 AC 43 ms
49,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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


public class No056 {

    public static void main(String[] args) {
        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(
                    System.in));
            String[] tmp = br.readLine().split(" ");
            int D = Integer.parseInt(tmp[0]);
            int P = Integer.parseInt(tmp[1]);
            
            int total = D + D * P / 100;
            
            System.out.println(total);
        } catch (Exception e) {
            System.err.println("Error:" + e.getMessage());
        }
    }

}
0