please help me in this DP problem (Editorial is not Given)
https://codeforces.com/problemset/problem/180/E
CodeChef Starters 132 Solution Discussion
Codeforces Round 943 Solution Discussion