#abc266a. A - Middle Letter
A - Middle Letter
Score : points
问题描述
你将得到一个由小写英文字母组成的奇长度字符串 。
打印出 的中心字符。
什么是中心字符?对于一个奇长度字符串 ,其中心字符是从起始位置数的第 个字符,其中 表示 的长度。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
You are given an odd-length string consisting of lowercase English letters.
Print the central character of .
What is the central character? For an odd-length string , its central character is the -th character from the beginning, where is the length of .
Constraints
- is an odd-length string consisting of lowercase English letters.
- The length of is between and (inclusive).
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
atcoder
Sample Output 1
o
The central character of atcoder
is o
.
Sample Input 2
a
Sample Output 2
a
update @ 2024/3/10 11:14:15