XOR-Gun

YouKn0wWho has an integer sequence a1,a2,…,ana_1, a_2, \ldots, a_na1​,a2​,…,an​. He will perform the following operation until the sequence becomes empty: Select a non-empty subsequence of aaa such that the bitwise XOR of the elements of the subsequence is xxx, and then erase the elements of that subsequence.


This is a companion discussion topic for the original entry at https://toph.co/p/xor-gun