No.221 Crime City
タグ : / 解いたユーザー数 292
作問者 :
No
Problem Statement
Many mafia members live in Y City, and it has become a hotbed of crime.
Therefore, Y City has decided to introduce a mafia detector and arrest everyone
who is judged to be a member.
A mafia detector is a device that can determine whether a subject is
an ordinary citizen or a member with 99% accuracy.
The detector is applied to the entire population of Y City, 1,000,000 people,
and those judged to be "members" by the mafia detector are arrested.
However, it turned out that Y City actually has only N members per 10,000 people.
Find the probability that, when a person is arrested, it is a false arrest.
An absolute or relative error of up to ±0.01 in the answer is allowed.
Input
N
N is given as an integer.
0 <= N <= 10000
Output
Output the rate of false arrests in %. You do not need to include a unit in the output.
Print a newline at the end.
Sample
Sample 1
Input
100
Output
50
When there are 100 members per 10000 people, false arrests are expected at 50%.
Sample 2
Input
2500
Output
2.94117647058824
When there are 2500 members out of 10000 people, false arrests are expected at 2.940%.
Sample 3
Input
1
Output
99.0196078431373
When there is 1 member per 10000 people, false arrests are expected at 99% or more.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。