問題一覧 > 通常問題

No.285 Consumption Tax 2

レベル : / AI推定難易度 : 147 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 小数誤差許容問題 絶対誤差または相対誤差が $0$ 以下。ただし、ジャッジ側の都合で500桁未満にしてください
タグ : (AC するまで非表示) / 解いたユーザー数 565
作問者 : nmnmnmnmnmnmnm
お気に入りにしたユーザー ProblemId : 752 / 自分の提出
問題文最終更新日: 2026-06-25 12:17:26
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 122 (順位表) の他の問題:

Problem Statement

The currency unit of a certain country is the "Yukikoda".
You are now about to buy an item costing D Yukikoda?
However, a consumption tax at a rate of 8% is added to the price of the item.
What is the amount after the consumption tax is added?
Calculate exactly, with no error, including the digits after the decimal point.
As long as the value is correct, the output may contain extra decimal digits.
Be careful of rounding errors.

Input

D

D is the price of the item, a positive integer. $1 \le $ D $ \le 1000000000000=10^{12}$.

Output

Output the amount to pay on one line.
Print a newline at the end.

Sample

Sample 1
Input
100
Output
108

You bought an item costing 100 Yukikoda.
Since the consumption tax is 8%, the amount is 108 Yukikoda. (Outputs such as 108.00 are also correct.)

Sample 2
Input
10
Output
10.8

You bought an item costing 10 Yukikoda.
Since the consumption tax is 8%, the amount is 10.8 Yukikoda.

Sample 3
Input
123
Output
132.84

You bought an item costing 123 Yukikoda.
Since the consumption tax is 8%, the amount is 132.84 Yukikoda.

Sample 4
Input
1000000000000
Output
1080000000000

If you buy an item costing 1 trillion Yukikoda, the consumption tax is 80 billion Yukikoda.
The consumption tax is really nothing to sneeze at.

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