Problem E. CS Course
时间限制 2 ms
内存限制 32 MB
Little A has come to college and majored in Computer and Science.
Today he has learned bit-operations in Algorithm Lessons, and he got a problem as homework.
Here is the problem:
You are giving n non-negative integers $a_1,a_2,\cdots ,a_n$, and some queries.
A query only contains a positive integer p, which means you
are asked to answer the result of bit-operations (and, or, xor) of all the integers except $a_p$.
输入数据
输出数据
For each query p, output three non-negative integers indicates the result of bit-operations(and, or, xor) of all non-negative integers except $a_p$ in a line.
样例输入
样例输出
$ Mathjax font initiator $