#2731. 连续子序列异或的和(Hard)
连续子序列异或的和(Hard)
Background
Special for beginners, ^_^
Description
给定一个长度为 的整数序列 。
求所有长度大于 1 的连续子序列异或的和。
Format
Input
第一行一个正整数 ,表示数组的长度。
第二行给出 个不超过 的正整数。
Output
在一行中输出答案。
Samples
6
1 1 4 5 1 4
34
Limitation
1s, 1024KiB for each test case.