結果

問題 No.56 消費税
ユーザー kanotownkanotown
提出日時 2018-12-14 15:41:22
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 5,000 ms
コード長 307 bytes
コンパイル時間 3,409 ms
コンパイル使用メモリ 74,932 KB
実行使用メモリ 57,772 KB
最終ジャッジ日時 2023-10-25 10:07:28
合計ジャッジ時間 8,387 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
57,508 KB
testcase_01 AC 123 ms
57,276 KB
testcase_02 AC 124 ms
57,496 KB
testcase_03 AC 110 ms
56,296 KB
testcase_04 AC 128 ms
57,720 KB
testcase_05 AC 125 ms
57,500 KB
testcase_06 AC 120 ms
57,268 KB
testcase_07 AC 117 ms
57,556 KB
testcase_08 AC 120 ms
57,544 KB
testcase_09 AC 120 ms
57,508 KB
testcase_10 AC 123 ms
57,648 KB
testcase_11 AC 119 ms
57,392 KB
testcase_12 AC 120 ms
57,544 KB
testcase_13 AC 116 ms
57,628 KB
testcase_14 AC 120 ms
57,548 KB
testcase_15 AC 113 ms
57,552 KB
testcase_16 AC 120 ms
57,508 KB
testcase_17 AC 115 ms
57,372 KB
testcase_18 AC 117 ms
57,772 KB
testcase_19 AC 98 ms
55,596 KB
testcase_20 AC 119 ms
57,556 KB
testcase_21 AC 118 ms
57,568 KB
testcase_22 AC 120 ms
57,652 KB
testcase_23 AC 115 ms
57,544 KB
testcase_24 AC 118 ms
57,548 KB
testcase_25 AC 121 ms
57,344 KB
testcase_26 AC 115 ms
57,308 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class No56 {
    public static void main(String[] args) {
        // 標準入力
        Scanner sc = new Scanner(System.in);
            
        int D = sc.nextInt();
        int P = sc.nextInt();
        
        System.out.println((D + (int) (D * P / 100.0)));
    }
}
0