Help in a palindrome problem

Revision en1, by DC-HITMAN, 2019-09-10 00:48:27

Total number of different special palindrome string that can be created by using K different characters Condition of special palindrome:no prefix of length greater than 1 and less than n of the constructed string is palindrome itself Constraints N,k<1000000

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English DC-HITMAN 2019-09-10 00:48:27 287 Initial revision (published)