結果

問題 No.56 消費税
ユーザー Matumo
提出日時 2018-07-14 00:31:23
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 387 bytes
コンパイル時間 2,042 ms
コンパイル使用メモリ 74,800 KB
実行使用メモリ 41,920 KB
最終ジャッジ日時 2024-10-09 05:50:23
合計ジャッジ時間 6,548 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 RE * 2
other AC * 16 RE * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.BigDecimal;
import java.util.Scanner;

public class Main {

	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {

		BigDecimal b = new BigDecimal(sc.nextInt());
		BigDecimal p = new BigDecimal(sc.nextInt());
		p = p.divide(new BigDecimal(100));
		p = p.add(new BigDecimal(1));

		System.out.println(b.multiply(p).setScale(0));
    }
}
0