結果

問題 No.56 消費税
ユーザー soujikisoujiki
提出日時 2015-04-27 19:01:15
言語 Java21
(openjdk 21)
結果
AC  
実行時間 130 ms / 5,000 ms
コード長 248 bytes
コンパイル時間 3,082 ms
コンパイル使用メモリ 71,316 KB
実行使用メモリ 56,060 KB
最終ジャッジ日時 2023-09-25 02:59:33
合計ジャッジ時間 7,832 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,820 KB
testcase_01 AC 122 ms
55,936 KB
testcase_02 AC 128 ms
55,688 KB
testcase_03 AC 127 ms
55,740 KB
testcase_04 AC 125 ms
55,692 KB
testcase_05 AC 130 ms
55,948 KB
testcase_06 AC 125 ms
55,668 KB
testcase_07 AC 123 ms
55,868 KB
testcase_08 AC 126 ms
55,480 KB
testcase_09 AC 122 ms
55,412 KB
testcase_10 AC 125 ms
55,704 KB
testcase_11 AC 126 ms
55,480 KB
testcase_12 AC 124 ms
55,680 KB
testcase_13 AC 128 ms
56,060 KB
testcase_14 AC 126 ms
55,700 KB
testcase_15 AC 126 ms
55,404 KB
testcase_16 AC 126 ms
55,976 KB
testcase_17 AC 126 ms
55,680 KB
testcase_18 AC 125 ms
55,800 KB
testcase_19 AC 130 ms
55,740 KB
testcase_20 AC 130 ms
55,808 KB
testcase_21 AC 126 ms
55,528 KB
testcase_22 AC 129 ms
55,840 KB
testcase_23 AC 122 ms
55,980 KB
testcase_24 AC 124 ms
55,904 KB
testcase_25 AC 126 ms
55,824 KB
testcase_26 AC 125 ms
55,788 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