cf/mirror

Prefix-Suffix Palindrome (Easy version)

CF
1326D11500· specialist2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
5
a
abcdfdcecba
abbaxyzyx
codeforces
acbba
Output
a
abcdfdcba
xyzyx
c
abba
1326D1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)