I believe, if I remember correctly, that they have to be squares of palindromes also. 121 == 11 * 11 so this passes because 121 and 11 are both palindromes.
However 676 == 26 * 26, and 26 is not a palindrome. Paul Smith [email protected] On Mon, Mar 17, 2014 at 12:15 PM, Anubhav Sethi <[email protected]>wrote: > In this problem ( Qualification Round 2013 Problem C. Fair and Square), > they are asking to calculate all the perfect squares which are palindrome > also.And as per their Sample testcase : > > > Input > 3 > 1 4 > 10 120 > 100 1000 > > Output > Case #1: 2 > Case #2: 0 > Case #3: 2 > > In case 3, between 100 and 1000 there are 3 such numbers : 121,484 and 676 > which are square and palindrome too. but here solution is given as 2. > > isnt it incorrect > > -- > You received this message because you are subscribed to the Google Groups > "Google Code Jam" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-code/0c0bb8ca-1ecf-4d45-ad1a-1c233bb6cd8b%40googlegroups.com > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-code/CAJej63%2B4t3jwQYmgrCrWGNekCkxUPYBvy4zbuPEN6CCQc6PD%3Dg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
