結果

問題 No.56 消費税
ユーザー chiho_miyakochiho_miyako
提出日時 2015-04-06 20:28:49
言語 Java19
(openjdk 21)
結果
AC  
実行時間 127 ms / 5,000 ms
コード長 343 bytes
コンパイル時間 2,976 ms
コンパイル使用メモリ 72,252 KB
実行使用メモリ 56,308 KB
最終ジャッジ日時 2023-09-25 01:49:19
合計ジャッジ時間 6,413 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,744 KB
testcase_01 AC 122 ms
55,780 KB
testcase_02 AC 125 ms
55,836 KB
testcase_03 AC 125 ms
56,200 KB
testcase_04 AC 126 ms
56,012 KB
testcase_05 AC 124 ms
55,884 KB
testcase_06 AC 122 ms
56,292 KB
testcase_07 AC 122 ms
55,676 KB
testcase_08 AC 121 ms
56,032 KB
testcase_09 AC 122 ms
56,128 KB
testcase_10 AC 124 ms
55,736 KB
testcase_11 AC 125 ms
55,728 KB
testcase_12 AC 125 ms
55,432 KB
testcase_13 AC 127 ms
56,048 KB
testcase_14 AC 123 ms
55,948 KB
testcase_15 AC 125 ms
56,308 KB
testcase_16 AC 127 ms
55,768 KB
testcase_17 AC 121 ms
56,060 KB
testcase_18 AC 119 ms
55,716 KB
testcase_19 AC 123 ms
56,208 KB
testcase_20 AC 124 ms
55,420 KB
testcase_21 AC 124 ms
55,944 KB
testcase_22 AC 124 ms
53,732 KB
testcase_23 AC 125 ms
55,720 KB
testcase_24 AC 125 ms
53,716 KB
testcase_25 AC 126 ms
56,144 KB
testcase_26 AC 125 ms
55,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner koko = new Scanner(System.in);
        int d = koko.nextInt();
        int p = koko.nextInt();
        double kake = d*(100+p)/100;
        int realp = (int)Math.floor(kake);
        System.out.println(realp);
    }
}
0