i get stuck with this dp problem in this problem i don't know how to represent a state please help me . link of problem is https://beta.atcoder.jp/contests/abc113/tasks/abc113_d
dp
i get stuck with this dp problem in this problem i don't know how to represent a state please help me . link of problem is https://beta.atcoder.jp/contests/abc113/tasks/abc113_d