[codeforce1188C&D]

$C$

思路与uoj的【套路】相同

$D$

$sum_{}^{}bit(x-a[i])$等价$sum_{}^{}bit(x-a[n]+a[n]-a[i])$

戒骄戒躁
原文地址:https://www.cnblogs.com/lxzl/p/11213740.html