Ann and Half-Palindrome
557E2300· international master1.5s512 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
abbabaab7
Output
abaa
Sample 2of 3
Input
aaaaa10
Output
aaa
Sample 3of 3
Input
bbaabb13
Output
bbaabb
58%
557E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…