結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,808 KB
testcase_01 AC 124 ms
56,044 KB
testcase_02 AC 122 ms
56,044 KB
testcase_03 AC 125 ms
55,904 KB
testcase_04 AC 125 ms
56,276 KB
testcase_05 AC 124 ms
56,092 KB
testcase_06 AC 125 ms
55,600 KB
testcase_07 AC 128 ms
56,180 KB
testcase_08 AC 127 ms
55,884 KB
testcase_09 AC 126 ms
55,836 KB
testcase_10 WA -
testcase_11 AC 126 ms
55,712 KB
testcase_12 AC 126 ms
55,648 KB
testcase_13 AC 125 ms
56,012 KB
testcase_14 AC 125 ms
55,880 KB
testcase_15 AC 126 ms
55,644 KB
testcase_16 AC 127 ms
55,804 KB
testcase_17 AC 128 ms
55,760 KB
testcase_18 AC 127 ms
55,600 KB
testcase_19 AC 126 ms
56,156 KB
testcase_20 AC 126 ms
55,884 KB
testcase_21 AC 124 ms
55,888 KB
testcase_22 AC 125 ms
55,632 KB
testcase_23 AC 128 ms
55,944 KB
testcase_24 AC 126 ms
55,832 KB
testcase_25 AC 127 ms
55,668 KB
testcase_26 AC 127 ms
55,736 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