This year at Spirit of Math Schools, you have been assigned to find the number of unique numbers between
Constraints
Subtask 1 [10%]
All of the digits are the same.
Subtask 2 [90%]
No additional constraints.
Input Specification
The first line contains two integers,
The next line contains a string of
Output Specification
Output a single line containing an integer, the number of unique values that can be created.
Sample Input
Copy
4 100
1996
Sample Output
Copy
2
Explanation for Sample
There are 8 possible combinations of operations:
Only two of these are between
Comments
could anyone help with batch 2 test case #8? I'm really stuck -- https://dmoj.ca/submission/5946631