ICPC and Typos#10828

ICPC and Typos (Editorial)

Let denote the length of the string .

Note that typos of different types produce words with different number of letters, so it's enough the number of possible words that may occur from each type separately, and then add them.

For type it'