Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

Comments
On zxqflSRM 663 Brief Editorial, 9 years ago
0

The constraints section of the problem statement states that "N will be a power of 2." So yes, it is always possible to divide S into equal-sized subsets A and B.

I still can't get it. How do we conclude the gcd part? Would someone explain it in more details, please?