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.
Check whether the digits of each square can be cut into pieces that add up to the root, then sum the squares that pass.