• [1148] Creating Palindrome

  • 时间限制: 1000 ms 内存限制: 65535 K
  • 问题描述
  • XadillaX likes to play with strings very much.
    His favorite string is palindrome. Once he come across with a string, XadillaX always wants to change it to a palindrome by resorting the letters.

    Now give you a string, you should tell him whether the string can be changed to a palindrome. If yes, you should output it. (The smallest one in Lexicographic order)

  • 输入
  • This problem contains several cases.
    Each case is a string, no longer than 20000. Only contains uppercase letters.
  • 输出
  • For each case, if it can be changed to a palindrome, output it. If can't, output 0.
  • 样例输入
  • FJSDAKL
    ABCDECDAB
    
  • 样例输出
  • 0
    ABCDEDCBA
    
  • 提示
  • 来源
  • XadillaX
  • 操作

显示春菜