题解:DLESS R2 T1

· · 题解

Solution

显然,i 的点权 a_i=b_{i,i}

考虑一对 (i,j)

由于保证有解,直接输出所有 a_i\oplus a_j=b_{i,j} 的对即可。

复杂度 \mathcal O(\sum n^2)