Bernoulli scheme#11726

Bernoulli scheme

1 sekunda
128 megabajtów
Bardzo łatwe

Let us consider the Bernoulli trial scheme.

There are independent trials. The probability of event occurring in each trial is . Find the probability that in independent trials, event will occur exactly times.

Dane wejściowe

The first line contains two integers: n~(0 < n \le 15) and k~(0 \le k \le n).

The second line contains one real number p~(0 \le p \le 1).

Dane wyjściowe

Print the probability that in independent trials, event will occur exactly times. Print the answer with at least decimal places.

Przykłady

Przykład 1

Loading
Loading

Przykład 2

Loading
Loading