Codeforces Global Round 1

Codeforces Global Round 1 题解:The Editorial of the First Codeforces Global Round A:其实mod 2计算一下就行了 B:删掉最长的k-1段,sort C: x是a的二进制最高位, 考虑对于a!=2^(x+1)-1,一定可以找到一个c<a,使得c&a=0,并且c xor a=2^(x+1)-1,那么gcd就是2^(x+1)
相关文章
相关标签/搜索