https://codeforces.net/contest/1459/problem/B
i just started learning dp a year ago and i could not find the solution for this problem.i dont know the states because i dont know what thing matters to get to a certain point and also the dimension of the dp.can anyone help me>