I guess in the first ques of Round 1A, we have to check only until the sum of squares of digits is not a single digit integer. Say, for sum number, if we get the sum of square of digits 8, we stop there and declare it to be unhappy without doing 8*8 = 64 .
Regards, Mahendra Kariya http://www.mahendrakariya.blogspot.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "google-codejam" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-code?hl=en -~----------~----~----~----~------~----~------~--~---
