問題一覧 > 通常問題

No.2234 palindromer

レベル : / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 170
作問者 : csharpython / テスター : 👑 seekworser
お気に入りにしたユーザー ProblemId : 9069 / 自分の提出
問題文最終更新日: 2023-01-25 13:36:49
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder contest 379 (順位表) の他の問題:

Problem Statement

You are given a string $A$. Output one of the shortest palindromes that start with $A$. If there are multiple possible answers, you may output any of them.

Input

$A$

$1\le Aの長さ \le 100$
$A$ is a string consisting of lowercase English letters.

Output

Output as described in the problem statement.
Print a newline at the end.

Sample

Sample 1
Input
palindrome
Output
palindromemordnilap

Sample 2
Input
nolemonn
Output
nolemonnomelon

Sample 3
Input
abcdcba
Output
abcdcba

The input may be a palindrome.

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。