Masala #0461
Mergan
Merganning nishonga tekkizish ehtimolligi \(a\) ga teng. Mergan \(n\) marta o’q otganda \(n-1\) marta nishonga tegish ehtimolligini toping.
Kiruvchi ma'lumotlar:
Haqiqiy son \(a(0≤a≤1)\) va \(n\) natural son \((1 ≤ n ≤ 10^5)\)
Chiquvchi ma'lumotlar:
Nishonga tegish ehtimolligi \(10^{-4}\) aniqlikda chiqaring.
Misollar
# | input.txt | output.txt |
---|---|---|
1 |
0.9 4 |
0.2916 |
2 |
0 7 |
0.0000 |