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. ↵
↵
[submission:360662700]↵
↵
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.
↵
Because I do not find a dp solution, so I write one by myself, and it gets AC verdict. ↵
↵
[submission:360662700]↵
↵
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.




