当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

5270:ZYB loves Xor II

题目描述
ZYB loves xor very much.Now he gets two arrays A and B.The length of A and B are both n.ZYB wants to know the xor of all $(A_i+B_j)$ $(i,j \in [1,n])$.
The xor of an array $B$ is defined as $B_1$ $xor$ $B_2$ $xor$....$xor$ $B_n$
输入解释
Multiple test cases, the first line contains an integer T(no more than 10), indicating the number of cases. Each test case contains three lines
In the first line there is an integer n.
In the second line there are n integers $A_1,A_2...A_n$
In the third line there are n integers $B_1,B_2...B_n$
$n \in [1,10^5]$,$A_i,B_i \in [0,2^{60}]$
The sum of all $n$ is no more than $2*10^5$
输出解释
For each case, the output should occupies exactly one line. The output format is Case #x: ans, here x is the data number begins at 1.
输入样例
1
5
8 11 30 28 0
28 27 22 0 0
输出样例
Case #1: 34
来自杭电HDUOJ的附加信息
Recommend hujie

该题目是Virtual Judge题目,来自 杭电HDUOJ

题目来源 BestCoder Round #44

源链接: HDU-5270

最后修改于 2020-10-25T23:21:13+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
6000/3000MS(Java/Others) 65536/65536K(Java/Others)