#278. 字符串提取中间两字符

    ID: 278 Type: Default 1000ms 256MiB Tried: 0 Accepted: 0 Difficulty: (None) Uploaded By: Tags>codingbatString-1gesp3字符串

字符串提取中间两字符

Extract Middle Characters

Background

Congcong is learning string processing and encountered an interesting small problem.

Problem Description

Given a string of even length, return a string made of the middle two characters. For example, the string "string" yields "ri". The string length will be at least 22.

Input Format

Input is given from standard input in the following format.

An even-length string SS.

Output Format

Output is printed to standard output in the following format.

The string consisting of the middle two characters of string SS.

Sample

string
"ri"
code
"od"
Practice
"ct"

Sample Explanation

For the first sample, the string "string" has a length of 66. The middle two characters are 'r' and 'i' at indices 22 and 33 (assuming 00-indexed), which combine to "ri". For the second sample, the string "code" has a length of 44. The middle two characters are 'o' and 'd' at indices 11 and 22 (assuming 00-indexed), which combine to "od".

Constraints

Time limit: 11 second, Memory limit: 10241024 KiB for each test case.