結果

問題 No.56 消費税
ユーザー soujikisoujiki
提出日時 2015-04-27 19:01:15
言語 Java19
(openjdk 19.0.1)
結果
AC  
実行時間 132 ms / 5,000 ms
コード長 248 bytes
コンパイル時間 3,312 ms
コンパイル使用メモリ 71,216 KB
実行使用メモリ 56,228 KB
最終ジャッジ日時 2023-07-04 05:30:40
合計ジャッジ時間 8,051 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
55,844 KB
testcase_01 AC 130 ms
55,716 KB
testcase_02 AC 128 ms
55,808 KB
testcase_03 AC 132 ms
55,936 KB
testcase_04 AC 129 ms
55,960 KB
testcase_05 AC 129 ms
55,624 KB
testcase_06 AC 129 ms
55,696 KB
testcase_07 AC 130 ms
55,872 KB
testcase_08 AC 129 ms
55,984 KB
testcase_09 AC 131 ms
56,084 KB
testcase_10 AC 127 ms
56,228 KB
testcase_11 AC 128 ms
55,804 KB
testcase_12 AC 128 ms
55,644 KB
testcase_13 AC 128 ms
55,740 KB
testcase_14 AC 127 ms
55,520 KB
testcase_15 AC 128 ms
55,408 KB
testcase_16 AC 127 ms
55,672 KB
testcase_17 AC 130 ms
55,772 KB
testcase_18 AC 128 ms
56,016 KB
testcase_19 AC 127 ms
56,008 KB
testcase_20 AC 129 ms
55,792 KB
testcase_21 AC 129 ms
55,816 KB
testcase_22 AC 129 ms
55,816 KB
testcase_23 AC 129 ms
55,652 KB
testcase_24 AC 125 ms
55,700 KB
testcase_25 AC 127 ms
55,808 KB
testcase_26 AC 127 ms
55,932 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Yukicoder_56{
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int D = stdIn.nextInt();
		int P = stdIn.nextInt();
		double p = D*(100+P);
		System.out.println((int)p/100);
	}
}
0