版本比较
Solution P10408 | Yet Another Classical Problem
正文
增加 2 行删除 2 行
31 行未改动323334353636373839409 行未改动505152535454555631 行未改动 for(ll y=X; y>=0; y = (y?((y-1)&X):-1)) w[y^x] += d; } v[x] = val; }else{ ll x=read(); ll x=read(); if(popcnt(x) > B){ LL ans = w[x]; ll X = all ^ x; for(ll y=X; y>=0; y = (y?((y-1)&X):-1)) { if(popcnt(y) & 1) {9 行未改动 printf("%lld\n", ans); } } }
}```