キャディプログラミングコンテスト2021(AtCoder Beginner Contest 193)
翻译中…
Problem Statement
翻译中…
A shop sells a product whose regular price is $A$ yen (Japanese currency) for $B$ yen. By what percentage of the regular price is this product discounted?
翻译中…
Constraints
翻译中…
$A$and$B$are integers.$1 ≤ B < A ≤ 10^5$
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
A B
翻译中…
Output
翻译中…
Print the answer as a decimal.
Your answer will be judged as correct when its absolute or relative error from our answer is at most $10^{-2}$.
翻译中…
样例
Input #1
100 80
Output #1
20.0
If a product whose regular price is $100$ yen is sold for $80$ yen, it is discounted by $20$ percent of the regular price.
Input #2
7 6
Output #2
14.285714285714285714
Input #3
99999 99998
Output #3
0.00100001000010000100
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。