No.567 Complete
レベル : / 実行時間制限 : 1ケース 2.000秒 / メモリ制限
: 512 MB / 小数誤差許容問題 絶対誤差または相対誤差が $10^{-7}$ 以下。ただし、ジャッジ側の都合で500桁未満にしてください
タグ : / 解いたユーザー数 186
作問者 :
naimonon77
/ テスター :
ixmel
タグ : / 解いたユーザー数 186
作問者 :
ixmel
問題文最終更新日: 2019-09-04 10:24:45
English (AI translation)
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 173
(順位表)
の他の問題:
Problem Statement
You roll a 6-sided die $n$ times. Find the probability that all faces of the die appear.
Input
$n$
$1 \leq n \leq 10^6$
Output
Output the probability that all faces appear when the die is rolled $n$ times.
Sample
Sample 1
Input
1
Output
0
With a single roll, it is impossible to get all of them.
Sample 2
Input
6
Output
0.015432098765432
$(1/6)^6*6!$
Sample 3
Input
7
Output
0.054012345
Sample 4
Input
50
Output
0.99934071
At this many rolls, all faces appear almost certainly.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。