• + 1 comment

    simple dp passed all test cases https://wtools.io/paste-code/YQW