https://atcoder.jp/contests/abc007/tasks/abc007_4
- Thoughts. - Digit DP to find and subtract B less than or equal to B and A-1 less than or equal to A
- Official Explanation OK
- Use octal in another solution.
This page is auto-translated from /nishio/abc007_4 using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I’m very happy to spread my thought to non-Japanese readers.