結果

問題 No.56 消費税
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2016-11-09 20:41:59
言語 Java19
(openjdk 21)
結果
AC  
実行時間 127 ms / 5,000 ms
コード長 271 bytes
コンパイル時間 1,968 ms
コンパイル使用メモリ 71,088 KB
実行使用メモリ 56,616 KB
最終ジャッジ日時 2023-09-25 03:45:52
合計ジャッジ時間 6,494 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,796 KB
testcase_01 AC 126 ms
55,984 KB
testcase_02 AC 122 ms
55,636 KB
testcase_03 AC 122 ms
55,932 KB
testcase_04 AC 120 ms
55,404 KB
testcase_05 AC 120 ms
55,500 KB
testcase_06 AC 124 ms
55,848 KB
testcase_07 AC 123 ms
55,924 KB
testcase_08 AC 123 ms
55,948 KB
testcase_09 AC 123 ms
56,036 KB
testcase_10 AC 122 ms
56,032 KB
testcase_11 AC 120 ms
55,892 KB
testcase_12 AC 119 ms
55,412 KB
testcase_13 AC 124 ms
55,912 KB
testcase_14 AC 124 ms
55,972 KB
testcase_15 AC 126 ms
55,952 KB
testcase_16 AC 122 ms
55,808 KB
testcase_17 AC 121 ms
55,792 KB
testcase_18 AC 122 ms
55,628 KB
testcase_19 AC 123 ms
56,092 KB
testcase_20 AC 124 ms
55,784 KB
testcase_21 AC 124 ms
56,144 KB
testcase_22 AC 124 ms
55,684 KB
testcase_23 AC 127 ms
56,616 KB
testcase_24 AC 123 ms
55,808 KB
testcase_25 AC 122 ms
55,640 KB
testcase_26 AC 124 ms
55,640 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int D = sc.nextInt();
        int P = sc.nextInt();
int duty = D*P/100;
int sum = D+ duty;

        System.out.println(sum);
    }
}
0