# -*- coding: utf-8 -*- def solution(i, m, dp, A, N): dp[m] = True dp[m^A[i]] = True if not dp[m]: if i