Problem 3806 · Hard

Maximum Bitwise AND After Increment Operations

Decide each bit of the answer from the highest down, checking whether m numbers can be raised to contain all chosen bits within k operations.

Open the interactive visualisation