Premium problem56. All Digits Distinct

Medium Locked

Pick an integer uniformly from 1 to N inclusive. Return the probability that all of its decimal digits are different from one another.

Input

100

Output

0.9

Premium problem

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

Implement solve(...)