Comments

Try long long type instead of int.

Can someone explain why regular set is not fast enough for the problem F? Use same logic but instead of BIT use set.

a

Can someone explain solution of E1?

How it is No? HuyHoang