nstrings, each with three distinct letters, chosen randomly with equal probability.
Print the proportion
kis the number of strings such that all three characters are in ascending order. Print also those
- The only input is
n(and thus it must be a positive integer).
k/nmust be truncated to two decimal places.
The strings that are in ascending order of letters.
The letters must come from the English alphabet.
You cannot print the value of
0.22 hls jqr
How to Win
- Fewest number of bytes wins.