Codeforces Round 1077 (Div. 2)——D. Shortest Statement Ever
Because I do not find a dp solution, so I write one by myself, and it gets AC verdict.
However, I feel a little strange about my solution, because I think there are some flaws, but I cannot find counterexamples.
So, please help me review my code and solution. I'm glad about my solution to be hacked.









Auto comment: topic has been updated by ZnZrYb (previous revision, new revision, compare).