Comments

Can we do the third problem using DP?

Editorial please.

Can someone please explain the approach for the first problem in detail i didn't get it, thanks in advance. <3