Problem B. three arrays
时间限制 2500 ms
内存限制 256 MB
There are three integer arrays $a, b, c$. The lengths of them are all $N$. You are given the full contents of $a$ and $b$. And the elements in $c$ is produced by following equation: $c[i] = a[i]\ XOR\ b[i]$ where $XOR$ is the bitwise exclusive or operation.
Now you can rearrange the order of elements in arrays $a$ and $b$ independently before generating the array $c$. We ask you to produce the lexicographically smallest possible array $c$ after reordering $a$ and $b$. Please output the resulting array $c$.
输入数据
输出数据
For each test, output a line containing $N$ integers, representing the lexicographically smallest resulting array $c$.
样例输入
样例输出
$ Mathjax font initiator $