Чергова задача ICPC про рядки#10825

Чергова задача ICPC про рядки (Розбір)

Let's keep bitsets , where corresponding bitset has ones only at positions where his letter is present. Updating these bitsets after queries of type is trivial, let's see how to deal with queries of type .

Suppo