Premium problem87. At Least k Heads

Easy Locked

For X∼Binomial(n,p)X \sim \mathrm{Binomial}(n, p), return P(X≥k)P(X \geq k) by summing the tail.

Input

n = 10
k = 6
p = 0.5

Output

0.376953125

Premium problem

This one's part of Premium. Unlock the full Probability track plus every other premium problem on the site.

Implement solve(...)