{1,2,,n}, you should determine the maximum value you can get if you repeatably choose exactly. Please notice that you can choose one integer multiple times for one
Given {n} n integers A_1, A_2, cdots, A_n A 1 ,A 2 ,⋯,A n . For all {i} i in {1, 2, cdots, n} {1,2,⋯,n}, you should determine the maximum value you can get if you repeatably choose exactly {i} i integers a_1, a_2, cdots a_i a 1 ,a 2 ,⋯a i and calulate their XOR sum a_1 oplus a_2 oplus cdots oplus a_i a 1 ⊕a 2 ⊕⋯⊕a i . Please notice that you can choose one integer multiple times for one {i} i in this problem.
(图片来源网络,侵删)