https://liuxueyang.github.io/posts/codeforces/1794c/
CodeForces 1794C Scoring Subsequences