#282. 字符串中间子串提取
字符串中间子串提取
Extract Middle Substring
Background
Congcong is learning string manipulation and encountered an interesting problem that requires extracting a specific part from a given string.
Problem Description
Given a string of odd length, return the string length from its middle. For example, "Candy" yields "and". The string length will be at least .
Input Format
Input is given from standard input in the following format.
A string
Output Format
Output is printed to standard output in the following format.
The extracted middle substring of length
Sample
Candy
"and"
and
"and"
solving
"lvi"
Sample Explanation
For the input "Candy\