Codeforces: Two Types of Spells

Hello guys.

I want to share my understanding problem this problem, I’m not able to solve this problem and maybe I’m missing something.

Can you help me to understand this problem?

Is possible found my proposal here

Thanks