Problem 2947 · Medium

Count Beautiful Substrings I

Enumerate substrings and count those whose vowel and consonant counts are equal with a product divisible by k.

Open the interactive visualisation