We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
https://codeforces.com/problemset/problem/118/D
A 4 dimensional DP problem, actually 3 if smart
There was an error while loading. Please reload this page.