Need help for the recursive dp code
Can someone provide the solution and recursive code for the problem DIV 2: C, thanks in advance for helping out.
ICPC NA North Central and South Division