Problem 3704 · Hard

Count No-Zero Pairs That Sum to N

Digit DP over the digits of n, tracking the carry and which addends have ended.

Open the interactive visualisation