U360500 灵茶八题 - 子数组 +w^
题目描述
给你一个长为 $n$ 的数组 $a$,输出它的所有连续子数组的元素和的异或和。
例如 $a=[1,3]$ 有三个连续子数组 $[1],[3],[1,3]$,元素和分别为 $1,3,4$,所以答案为 $1\oplus 3\oplus 4=6$。
输入格式
无
输出格式
无
说明/提示
其余题目见[《灵茶八题》题目列表](https://www.luogu.com.cn/blog/endlesscheng/post-ling-cha-ba-ti-ti-mu-lie-biao)