#270. 移除字符串首尾字符
移除字符串首尾字符
Remove First and Last Character
Background
Congcong is learning about string manipulation and has encountered a simple task that requires some operations on strings.
Problem Description
Given a string, return a version without the first and last character. For example, "Hello" yields "ell". The string length will be at least .
Input Format
Input is given from Standard Input in the following format.
s
Output Format
Output is printed to Standard Output in the following format.
result
Sample
Hello
"ell"
java
"av"
coding
"odin"
Sample Explanation
For the input string "Hello\