結果

問題 No.56 消費税
ユーザー h_tyokinuhatah_tyokinuhata
提出日時 2015-12-23 02:00:24
言語 Java21
(openjdk 21)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 343 bytes
コンパイル時間 3,059 ms
コンパイル使用メモリ 71,988 KB
実行使用メモリ 58,184 KB
最終ジャッジ日時 2023-09-25 03:18:22
合計ジャッジ時間 6,794 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,740 KB
testcase_01 AC 121 ms
55,752 KB
testcase_02 AC 123 ms
56,144 KB
testcase_03 AC 122 ms
55,892 KB
testcase_04 AC 123 ms
55,932 KB
testcase_05 AC 123 ms
55,644 KB
testcase_06 AC 126 ms
56,348 KB
testcase_07 AC 122 ms
55,700 KB
testcase_08 AC 123 ms
55,900 KB
testcase_09 AC 123 ms
55,392 KB
testcase_10 WA -
testcase_11 AC 126 ms
56,044 KB
testcase_12 AC 125 ms
56,092 KB
testcase_13 AC 122 ms
55,644 KB
testcase_14 AC 123 ms
55,704 KB
testcase_15 AC 122 ms
55,756 KB
testcase_16 AC 125 ms
55,580 KB
testcase_17 AC 120 ms
55,992 KB
testcase_18 AC 123 ms
54,012 KB
testcase_19 AC 124 ms
58,184 KB
testcase_20 AC 122 ms
56,168 KB
testcase_21 AC 123 ms
55,604 KB
testcase_22 AC 123 ms
56,204 KB
testcase_23 AC 122 ms
55,752 KB
testcase_24 AC 127 ms
55,892 KB
testcase_25 AC 122 ms
55,708 KB
testcase_26 AC 121 ms
55,956 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
 
class Main {
    public static void main(String[] args) {

    	Scanner sc = new Scanner(System.in);
    	ArrayList<Integer> thList = new ArrayList<>();

    	int D = sc.nextInt();
    	int P = sc.nextInt();
    	double tax = D * ((double)P / 100);
    	int result = D + (int)tax;
    	System.out.println(result);
    }
}
0