We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ID: sumsquareddigits
Difficulty: 1.5
CPU Time: 1 second
Memory: 1024 MB
For this, one can take the given n, and until n == 0, add (n % b)^2 to a running total, and divide n by b.