結果

問題 No.56 消費税
ユーザー yagi2yagi2
提出日時 2017-04-25 17:32:48
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 298 bytes
コンパイル時間 3,661 ms
コンパイル使用メモリ 72,920 KB
実行使用メモリ 56,516 KB
最終ジャッジ日時 2023-10-11 09:45:53
合計ジャッジ時間 6,388 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
56,028 KB
testcase_01 AC 120 ms
53,924 KB
testcase_02 AC 119 ms
55,416 KB
testcase_03 AC 117 ms
53,832 KB
testcase_04 AC 118 ms
55,768 KB
testcase_05 AC 118 ms
55,848 KB
testcase_06 AC 118 ms
55,692 KB
testcase_07 AC 116 ms
56,516 KB
testcase_08 AC 117 ms
55,844 KB
testcase_09 AC 118 ms
55,928 KB
testcase_10 WA -
testcase_11 AC 118 ms
55,664 KB
testcase_12 AC 119 ms
55,752 KB
testcase_13 AC 116 ms
55,636 KB
testcase_14 AC 118 ms
56,100 KB
testcase_15 AC 116 ms
55,432 KB
testcase_16 AC 118 ms
55,744 KB
testcase_17 AC 117 ms
55,436 KB
testcase_18 AC 118 ms
55,856 KB
testcase_19 AC 120 ms
55,964 KB
testcase_20 AC 118 ms
55,728 KB
testcase_21 AC 122 ms
55,592 KB
testcase_22 AC 118 ms
55,432 KB
testcase_23 AC 117 ms
55,752 KB
testcase_24 AC 119 ms
55,440 KB
testcase_25 AC 120 ms
55,856 KB
testcase_26 AC 119 ms
55,960 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());

        System.out.println(D + (int)Math.floor(D*(P/100.0)));
    }
}
0