#abc306a. A - Echo
A - Echo
Score : points
问题描述
你将得到一个长度为 的字符串 ,由小写英文字母组成。
我们将 的第 个字符记为 。
请按照此顺序拼接 和 ,并输出得到的长度为 的字符串。
例如,若 为 beginner
,则应输出 bbeeggiinnnneerr
。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
You are given a string of length consisting of lowercase English letters.
We denote the -th character of by .
Print the string of length obtained by concatenating , and in this order.
For example, if is beginner
, print bbeeggiinnnneerr
.
Constraints
- is an integer such that .
- is a string of length consisting of lowercase English letters.
Input
The input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
8
beginner
Sample Output 1
bbeeggiinnnneerr
It is the same as the example described in the problem statement.
Sample Input 2
3
aaa
Sample Output 2
aaaaaa
update @ 2024/3/10 08:38:03