結果

問題 No.56 消費税
ユーザー yuki2006yuki2006
提出日時 2014-11-04 00:08:44
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 5,000 ms
コード長 356 bytes
コンパイル時間 3,407 ms
コンパイル使用メモリ 70,956 KB
実行使用メモリ 56,692 KB
最終ジャッジ日時 2023-09-25 01:34:49
合計ジャッジ時間 7,600 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,688 KB
testcase_01 AC 120 ms
55,532 KB
testcase_02 AC 122 ms
55,652 KB
testcase_03 AC 123 ms
55,788 KB
testcase_04 AC 122 ms
55,696 KB
testcase_05 AC 120 ms
55,448 KB
testcase_06 AC 123 ms
55,532 KB
testcase_07 AC 120 ms
56,692 KB
testcase_08 AC 119 ms
55,484 KB
testcase_09 AC 119 ms
55,772 KB
testcase_10 AC 121 ms
55,528 KB
testcase_11 AC 120 ms
55,816 KB
testcase_12 AC 120 ms
55,528 KB
testcase_13 AC 122 ms
55,828 KB
testcase_14 AC 121 ms
55,464 KB
testcase_15 AC 120 ms
55,212 KB
testcase_16 AC 120 ms
55,832 KB
testcase_17 AC 120 ms
56,168 KB
testcase_18 AC 120 ms
55,468 KB
testcase_19 AC 122 ms
55,784 KB
testcase_20 AC 120 ms
55,344 KB
testcase_21 AC 121 ms
55,628 KB
testcase_22 AC 119 ms
55,240 KB
testcase_23 AC 119 ms
55,728 KB
testcase_24 AC 121 ms
55,640 KB
testcase_25 AC 122 ms
55,784 KB
testcase_26 AC 122 ms
56,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Yuki056 {
    public static void main(String[] args) {
        Yuki056 hoge = new Yuki056();
    }

    Yuki056() {
        Scanner scanner = new Scanner(System.in);
        int D = scanner.nextInt();
        int P = scanner.nextInt();

        System.out.println((int) (D + 0.01 * D * P));
    }

}
0