Sum f(X) for every X in [L, R], where f counts the steps of a process that halves even numbers and adds 1 to odd numbers until reaching 1. The bounds reach 10^18.
Hard8MathBit manipulationDivide and conquerDynamic programmingNo attempts yetTime limit2sMemory limit512 MB