+ 2

How to solve the given problem?

I have been trying to solve the problem https://www.codechef.com/ZCOPRAC/problems/ZCO15001 on codechef, but I m completely failing the logics, i just couldn't make out the possible solution. As far as i can see this is an optimization type of problem and can be solved with DP. Any help or pseudocode will be a great help. Please help me out, guys! any solution is highly appreciated.

26th Nov 2019, 5:02 PM
Pranshu Ranjan
Pranshu Ranjan - avatar
1 Réponse
0
unknown wait what ?? Then you shouldn't have answered it here , if it is irrelevant for you then it doesn't mean to irrelevant for other too , this question has came in ICO (international computing Olympiad)😀😀😜😜
2nd Dec 2019, 5:39 AM
Pranshu Ranjan
Pranshu Ranjan - avatar