DreamGrid has a nonnegative integern,He would like to divideninto mnonnegative integersa1,a2,...amand minimizes their bitwise or.
DreamGrid has a nonnegative integer n, He would like to divide n into m nonnegative integers a1,a2,...am and minimizes their bitwise or (i.e:n = a1 + a2 + ... + am and a1 OR a2 OR ... OR am should be as small as possible).
(图片来源网络,侵删)