- Mã:
- ABC171.BaiE
- Tên:
- ABC171.BaiE
- Dạng thi:
- oi
- Thang điểm:
- 100 điểm
- Giới hạn thời gian:
- 1 giây
- Giới hạn bộ nhớ:
- 256 MB
- Được tạo bởi:
- admin
Problem Statement
There are Snuke Cats numbered , where is even.
Each Snuke Cat wears a red scarf, on which his favorite non-negative integer is written.
Recently, they learned the operation called xor (exclusive OR).
What is xor?
They wanted to use this operation quickly, so each of them calculated the xor of the integers written on their scarfs except his scarf.
We know that the xor calculated by Snuke Cat , that is, the xor of the integers written on the scarfs except the scarf of Snuke Cat is . Using this information, restore the integer written on the scarf of each Snuke Cat.
Constraints
- All values in input are integers.
- is even.
- There exists a combination of integers on the scarfs that is consistent with the given information.
Input
Input is given from Standard Input in the following format:
Output
Print a line containing integers separated with space.
The -th of the integers from the left should represent the integer written on the scarf of Snuke Cat .
If there are multiple possible solutions, you may print any of them.
Sample Input 1 Copy
4 20 11 9 24
Sample Output 1 Copy
26 5 7 22
Theme :
Mời bạn soạn code