問題一覧 > 通常問題

No.221 Crime City

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

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もしくは右上の雲マークをクリックしてアカウントを作成してください。