#P2094. Xor Transform
Xor Transform
题目描述
点击这里查看pdf
MianKing has one integer , he wants to perform some operations to transform to .
In each operation, MianKing can choose one integer
It's noticed that after an operation, the upper bound of will change because has changed.
Now you need to help MianKing to find a way to transform to by doing at most operations.
输入格式
The first line has two integers .
.
输出格式
The first line has one integer denotes the number of operations you did.
Then there are integers denotes the you choose in each operations.
.
样例
5 3
3
1 2 5
提示
Form ICPC2020济南站