問題一覧 > 通常問題

No.56 Consumption Tax

レベル : / 実行時間制限 : 1ケース 5.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 1539
作問者 : nmnmnmnmnmnmnm
お気に入りにしたユーザー ProblemId : 111 / 自分の提出
問題文最終更新日: 2026-06-27 10:26:53
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder contest 47 (順位表) の他の問題:

Problem Statement

The currency unit of a certain country is the "Yukikoda".
You are about to buy an item costing $D$ Yukikoda?
However, a consumption tax at a rate of $P$% of the item's price is added.
How much do you actually pay?
Note that any fractional part is truncated.

Input

D P

$D$ is the price of the item you are about to buy, excluding consumption tax. $1\le D \le 10000000=10^7$ ($D$ is a positive integer.)
$P$ is the consumption tax rate of this country. $0\le P \le 100$ ($P$ is an integer.)

Output

Output the amount actually paid, taking consumption tax into account, on one line.
Do not forget the newline at the end.

Sample

Sample 1
Input
100 8
Output
108

A consumption tax at a rate of 8% is applied to an item costing 100 Yukikoda.
The consumption tax is 100*0.08=8 Yukikoda, so the amount actually paid is 108 Yukikoda.

Sample 2
Input
10 8
Output
10

A consumption tax at a rate of 8% is applied to an item costing 10 Yukikoda.
The consumption tax is 10*0.08=0.8 Yukikoda, so the calculated amount to pay is 10.8 Yukikoda.
However, since the fractional part is truncated, 0.8 is discarded and the answer is 10 Yukikoda.

Sample 3
Input
123 10
Output
135

Sample 4
Input
25 16
Output
29

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。