← Back to topics
Topic

z-palindromes

D
Dgleich
Can someone please give me test case 14,or see an error in my code?Here is the submission link:
http://www.z-trening.com/new/www/html/submit.php?subm_stat=1&submit=7100050781
A
Asmirasmir
the last one is a huge testcase , actualy the maximal input is 4*2^20 , thats about 4195000
so just check the length if its equal to the maximal input it must be just 1 or 0 palindromes , since you get tle most probably the last case is a huge palindrome and the answer is 1 :D