I’m reading the official editorial for the December 2021 problem HILO.
I get almost all of the solution, except when they state that we use the case when j = x, k = N - x and b = 0(when Bessie last said “LO”) as our final solution state. Specifically, why do we have to end at b = 0, or when Bessie last said “LO”? Isn’t our final state something like \frac{dp[x][x - N][0] + dp[x][x - N][1]}{2} instead?