結果

問題 No.56 消費税
ユーザー tentententen
提出日時 2020-11-10 12:26:17
言語 Java21
(openjdk 21)
結果
AC  
実行時間 118 ms / 5,000 ms
コード長 248 bytes
コンパイル時間 1,636 ms
コンパイル使用メモリ 71,968 KB
実行使用メモリ 56,592 KB
最終ジャッジ日時 2023-09-29 23:27:22
合計ジャッジ時間 5,949 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
56,396 KB
testcase_01 AC 117 ms
55,988 KB
testcase_02 AC 116 ms
56,104 KB
testcase_03 AC 113 ms
55,972 KB
testcase_04 AC 107 ms
55,664 KB
testcase_05 AC 106 ms
55,892 KB
testcase_06 AC 114 ms
55,456 KB
testcase_07 AC 111 ms
55,748 KB
testcase_08 AC 112 ms
55,940 KB
testcase_09 AC 114 ms
56,592 KB
testcase_10 AC 118 ms
55,988 KB
testcase_11 AC 117 ms
56,252 KB
testcase_12 AC 104 ms
55,980 KB
testcase_13 AC 106 ms
55,752 KB
testcase_14 AC 111 ms
55,812 KB
testcase_15 AC 111 ms
56,340 KB
testcase_16 AC 109 ms
55,804 KB
testcase_17 AC 112 ms
55,888 KB
testcase_18 AC 110 ms
56,320 KB
testcase_19 AC 108 ms
55,968 KB
testcase_20 AC 104 ms
55,984 KB
testcase_21 AC 105 ms
56,024 KB
testcase_22 AC 104 ms
56,144 KB
testcase_23 AC 106 ms
55,984 KB
testcase_24 AC 111 ms
55,972 KB
testcase_25 AC 113 ms
55,984 KB
testcase_26 AC 110 ms
55,856 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long d = sc.nextInt();
        int p = sc.nextInt();
        System.out.println(d * (100 + p) / 100);
    }
}
0