Cody

Problem 2496. Unusual Concatenations

Created by Peter Cook in Community

The sum of the squares of certain unusual integers is equal to the concatenation of their individual digits.

For example:

1233 = 12^2+33^2

990100 = 990^2+100^2

Given a number n, write a function that returns true if the number displays this property, and false otherwise. The number of digits will always be even.

This problem is inspired by this blog post: http://benvitalenum3ers.wordpress.com/2013/03/12/concatenation-x-y-x2-y2/

Solution Stats

68.97% Correct | 31.03% Incorrect
Last solution submitted on Jul 19, 2018