Problem 2514 · Hard

Count Anagrams

Each word can be rearranged on its own, so count the distinct arrangements per word with a multinomial and multiply them.

Open the interactive visualisation