New 21 game
Your task
You start with 0 points and keep drawing while your score is strictly less than k. Each draw adds a uniformly random integer from 1 to maxPts (inclusive) to your score. You stop as soon as your score is >= k. Return the probability that your final score is <= n, rounded to 5 decimal places. 0 <= k <= n <= 10^4, 1 <= maxPts <= 10^4.
Examples
new21_game(n: int, k: int, maxPts: int) -> floatExample 1
Input
new21_game(10, 1, 10)Output
1