irreducible专题

Irreducible Anagrams CodeForces - 1291D(前缀和)

Let’s call two strings s and t anagrams of each other if it is possible to rearrange symbols in the string s to get a string, equal to t. Let’s consider two strings s and t which are anagrams of each