#arc127d. [arc127_d]Sum of Min of Xor

[arc127_d]Sum of Min of Xor

给定两个长度为 nn 的数组 a,b,求

$$\sum_{i=1}^n\sum_{j=i+1}^n\min\{a_i\oplus a_j,b_i\oplus b_j\} $$

其中 oplusoplus 表示按位异或。