結果

問題 No.56 消費税
ユーザー hnthnt
提出日時 2016-04-10 18:51:01
言語 Java21
(openjdk 21)
結果
AC  
実行時間 148 ms / 5,000 ms
コード長 398 bytes
コンパイル時間 3,408 ms
コンパイル使用メモリ 72,436 KB
実行使用メモリ 56,728 KB
最終ジャッジ日時 2023-09-25 03:30:51
合計ジャッジ時間 8,485 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 147 ms
56,376 KB
testcase_01 AC 141 ms
56,024 KB
testcase_02 AC 140 ms
56,068 KB
testcase_03 AC 140 ms
56,436 KB
testcase_04 AC 142 ms
56,132 KB
testcase_05 AC 142 ms
56,248 KB
testcase_06 AC 139 ms
56,308 KB
testcase_07 AC 140 ms
55,968 KB
testcase_08 AC 141 ms
55,788 KB
testcase_09 AC 141 ms
54,220 KB
testcase_10 AC 141 ms
56,484 KB
testcase_11 AC 142 ms
56,284 KB
testcase_12 AC 141 ms
55,880 KB
testcase_13 AC 141 ms
56,188 KB
testcase_14 AC 139 ms
56,112 KB
testcase_15 AC 141 ms
55,728 KB
testcase_16 AC 141 ms
56,152 KB
testcase_17 AC 142 ms
55,828 KB
testcase_18 AC 148 ms
53,984 KB
testcase_19 AC 143 ms
56,436 KB
testcase_20 AC 143 ms
55,768 KB
testcase_21 AC 145 ms
56,412 KB
testcase_22 AC 141 ms
55,776 KB
testcase_23 AC 140 ms
56,728 KB
testcase_24 AC 141 ms
56,128 KB
testcase_25 AC 142 ms
56,256 KB
testcase_26 AC 145 ms
56,088 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.BigDecimal;
import java.util.Scanner;
public class no56 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		BigDecimal D = sc.nextBigDecimal();//100
		BigDecimal hyaku = new BigDecimal("100");
		BigDecimal ichi = new BigDecimal("1");
		BigDecimal P = sc.nextBigDecimal().divide(hyaku).add(ichi);
		System.out.println(D.multiply(P).intValue());
	}
}
0