結果

問題 No.56 消費税
ユーザー yagi2yagi2
提出日時 2017-04-25 17:35:07
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 5,000 ms
コード長 307 bytes
コンパイル時間 3,230 ms
コンパイル使用メモリ 72,252 KB
実行使用メモリ 56,164 KB
最終ジャッジ日時 2023-10-11 09:48:51
合計ジャッジ時間 7,913 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
55,752 KB
testcase_01 AC 116 ms
55,752 KB
testcase_02 AC 116 ms
55,708 KB
testcase_03 AC 116 ms
55,600 KB
testcase_04 AC 113 ms
56,072 KB
testcase_05 AC 116 ms
56,160 KB
testcase_06 AC 117 ms
55,764 KB
testcase_07 AC 114 ms
55,636 KB
testcase_08 AC 116 ms
55,960 KB
testcase_09 AC 117 ms
55,816 KB
testcase_10 AC 114 ms
55,860 KB
testcase_11 AC 117 ms
55,540 KB
testcase_12 AC 118 ms
56,164 KB
testcase_13 AC 115 ms
55,996 KB
testcase_14 AC 114 ms
55,576 KB
testcase_15 AC 120 ms
55,636 KB
testcase_16 AC 124 ms
56,040 KB
testcase_17 AC 116 ms
55,904 KB
testcase_18 AC 117 ms
55,660 KB
testcase_19 AC 117 ms
55,952 KB
testcase_20 AC 115 ms
55,880 KB
testcase_21 AC 117 ms
55,820 KB
testcase_22 AC 115 ms
56,072 KB
testcase_23 AC 116 ms
56,104 KB
testcase_24 AC 118 ms
55,656 KB
testcase_25 AC 116 ms
55,752 KB
testcase_26 AC 115 ms
55,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        long D = Long.parseLong(sc.next());
        int P = Integer.parseInt(sc.next());

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