LearnPy Hub
← Arena
AdvancedRating 1600

Chance of Rolling a Total

You roll n fair dice with f faces each (numbered 1 … f). Print the probability that the total is at least t, rounded to 6 decimal places.

Input

Three integers n (≤ 50), f (≤ 20) and t.

Output

One number.

Sample 1

Input
2 6 7
Output
0.583333

Sample 2

Input
1 6 7
Output
0.000000
solution.py
Output appears here
Chance of Rolling a Total · Python Arena problem · LearnPy Hub