Back
Close
  • 95

Statement

 Goal

Burt studies math but is too dumb to derive fancy formulas, so he solves his homework problems using random numbers.

Given an American roulette wheel with 38 possible outcomes (0-36 or 00), what are the odds of landing on at least m different numbers in n spins?
Input
Line 1: m
Line 2: n
Output
The probability rounded to the nearest percent.
Constraints
1 ≤ m ≤ 38
mn ≤ 50
Example
Input
6
7
Output
92%

A higher resolution is required to access the IDE