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)
相關文章
相關標籤/搜索