Problem 2698 · Medium

Find the Punishment Number of an Integer

Check whether the digits of each square can be cut into pieces that add up to the root, then sum the squares that pass.

Open the interactive visualisation