Bernoulli scheme
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
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.
Input
The first line contains two integers: and
The second line contains one real number .
Output
Print the probability that in independent trials, event will occur exactly times. Print the answer with at least decimal places.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 35
Acceptance rate 49%