4 1 8 2 21 17 21
0 2 4 6 17 19 21 23
There are $14$ not-necessarily-contiguous subsequences of $A$: $(),(2),(17),(21),(2,17),(2,21),(17,21),(21,17),(21,21),(2,17,21),(2,21,17),(2,21,21),(21,17,21)$, and $(2,21,17,21)$, whose $\operatorname{xor}$s are as follows.
* The $\operatorname{xor}$ of $()$ is $0$.
* The $\operatorname{xor}$ of $(2)$ is $2$.
* The $\operatorname{xor}$ of $(17)$ is $17$.
* The $\operatorname{xor}$ of $(21)$ is $21$.
* The $\operatorname{xor}$ of $(2,17)$ is $19$.
* The $\operatorname{xor}$ of $(2,21)$ is $23$.
* The $\operatorname{xor}$ of $(17,21)$ is $4$.
* The $\operatorname{xor}$ of $(21,17)$ is $4$.
* The $\operatorname{xor}$ of $(21,21)$ is $0$.
* The $\operatorname{xor}$ of $(2,17,21)$ is $6$.
* The $\operatorname{xor}$ of $(2,21,17)$ is $6$.
* The $\operatorname{xor}$ of $(2,21,21)$ is $2$.
* The $\operatorname{xor}$ of $(21,17,21)$ is $17$.
* The $\operatorname{xor}$ of $(2,21,17,21)$ is $19$.
Therefore, the set of all non-negative integers that can be the $\operatorname{xor}$ of a subsequence of $A$ is $\lbrace0,2,4,6,17,19,21,23\rbrace$.4 3 7 2 21 17 21
4 6 17 19 21
5 1 1 0 0 0 0 0
0 $A$ may contain the same value.
6 21 21 88 44 82 110 121 80
41
12 26 48 19629557415 14220078328 11340722069 30701452525 22333517481 720413777 11883028647 20926361028 24376768297 720413777 27999065315 13558621130
13558621130 14220078328 14586054825 15518998043 15970974282 16379590008 17091531049 17412316967 17836964726 18263536708 18965057557 19629557415 20282860278 20926361028 21302757781 21908867832 22333517481 22893781403 23595304394 23723463544 24376768297 24885524507 25261923402
Note that the input and output may not fit into a $32$\-$\operatorname{bit}$ integer type.{
"problem": {
"name": "Partial Xor Enumeration",
"description": {
"content": "For a sequence of non-negative integers $(a _ 1,a _ 2,\\ldots,a _ n)$, let us define its $\\operatorname{xor}$ as the integer $X$ such that, for all non-negative integer $j$: * the $2^j$s place of $X",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc283_g"
},
"statements": [
{
"statement_type": "Markdown",
"content": "For a sequence of non-negative integers $(a _ 1,a _ 2,\\ldots,a _ n)$, let us define its $\\operatorname{xor}$ as the integer $X$ such that, for all non-negative integer $j$:\n\n* the $2^j$s place of $X...",
"is_translate": false,
"language": "English"
}
]
}