paldrm
To the given string pal append minimal number of characters so that pal becomes a palindrome.
InputThe first line contains a string pal that consist of lower case letters of the english alphabet (and has max of 1000 characters).
OutputWrite the palindrome - the string pal appended with the minimal number of characters so that it becomes a palindrome.
Input:
Output:
acabaOutput:
acabacaInput:
Output:
rotorOutput:
rotorSubmit solution
Coming laterThe grading service will be connected in a later migration step. You can inspect the task and your previous results now.