結果

問題 No.56 消費税
ユーザー dazydazy
提出日時 2016-09-03 15:29:13
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 5,000 ms
コード長 316 bytes
コンパイル時間 3,121 ms
コンパイル使用メモリ 73,664 KB
実行使用メモリ 57,772 KB
最終ジャッジ日時 2023-09-25 03:39:12
合計ジャッジ時間 7,706 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,840 KB
testcase_01 AC 123 ms
56,052 KB
testcase_02 AC 123 ms
55,664 KB
testcase_03 AC 124 ms
55,748 KB
testcase_04 AC 126 ms
55,748 KB
testcase_05 AC 123 ms
55,888 KB
testcase_06 AC 122 ms
55,700 KB
testcase_07 AC 124 ms
55,732 KB
testcase_08 AC 124 ms
55,940 KB
testcase_09 AC 124 ms
55,644 KB
testcase_10 AC 124 ms
55,460 KB
testcase_11 AC 126 ms
57,772 KB
testcase_12 AC 124 ms
56,064 KB
testcase_13 AC 126 ms
56,156 KB
testcase_14 AC 124 ms
55,984 KB
testcase_15 AC 123 ms
55,924 KB
testcase_16 AC 123 ms
55,724 KB
testcase_17 AC 125 ms
55,536 KB
testcase_18 AC 124 ms
55,692 KB
testcase_19 AC 123 ms
55,744 KB
testcase_20 AC 124 ms
56,108 KB
testcase_21 AC 124 ms
55,888 KB
testcase_22 AC 125 ms
55,728 KB
testcase_23 AC 126 ms
55,652 KB
testcase_24 AC 126 ms
56,004 KB
testcase_25 AC 127 ms
55,712 KB
testcase_26 AC 125 ms
55,864 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Run {
    public static void main (String arg[]) {
        Scanner scan = new Scanner(System.in);
        int D = scan.nextInt();
        int P = scan.nextInt();
        if (D < 1||D > 10000000||P < 0||P > 100) System.exit(1);

        System.out.println(D + D*P/100);
    }
}
0