& 的优先级低于 +,所以类似 (pp[i-1]&a[i])+(sr[i]&a[x]) 一定要在位运算两边加括号。
&
+
(pp[i-1]&a[i])+(sr[i]&a[x])
hack:
1 5 1 4 34 13 2
ans:
34
wrong anser:
13