1.先求异或的“累异或”矩阵,类似累加,从i开始向后,一直找到异或成0的坐标。然后贪心求不重复区间。C+代码如下: #include <iostream> using namespace std; int main() { int n = 0; cin >> n; int *num = new int[n]; int *num2 = new int[n]; for (int i = 0; i < n; ++i) num2[i] = -1; for (int i = 0; i < n; ++i) { cin >> num[...