uva 11475 problem and udebug

Revision en1, by TheRoot, 2019-01-18 17:08:57

hello codeforces <3

i wanna talk about uva 11475 problem

firstly this is my solution: https://ideone.com/YbEC16

i got ac using this code :)

but when i open udebug and try morass case it get wrong answoer :(

i wanna talk about my solution:

firstly i get the largest palindrome from the end of the string

let N = (len(string)-len(largest palindrom from the end of the string))

after this i print the original string + the first N characters after reverse it

thank you all and iam sorry for my bad english

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English TheRoot 2019-01-18 17:08:57 561 Initial revision (published)