Well, I was trying to do this problem and got stuck. Can anyone give me some hints (like how should I describe a state in that DP problem) ?
(The editorial is only available in Japanese so ... )
Help me end my suffering ...
Well, I was trying to do this problem and got stuck. Can anyone give me some hints (like how should I describe a state in that DP problem) ?
(The editorial is only available in Japanese so ... )