103060: [Atcoder]ABC306 A - Echo

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:7 Solved:0

Description

Score : $100$ points

Problem Statement

You are given a string $S$ of length $N$ consisting of lowercase English letters.
We denote the $i$-th character of $S$ by $S_i$.
Print the string of length $2N$ obtained by concatenating $S_1,S_1,S_2,S_2,\dots,S_N$, and $S_N$ in this order.
For example, if $S$ is beginner, print bbeeggiinnnneerr.

Constraints

  • $N$ is an integer such that $1 \le N \le 50$.
  • $S$ is a string of length $N$ consisting of lowercase English letters.

Input

The input is given from Standard Input in the following format:

$N$
$S$

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

Input

题意翻译

## 题目描述 给定一个由小写英文字母组成的长度为 $N$ 的字符串 $S$,用 $S_i$ 表示字符串 $S$ 的第 $i$ 个字符。 请输出由 $S$ 中每个字符重复一次后组成的长度为 $2N$ 的字符串。 例如,若 $S$ 为 beginner,则输出为 bbeeggiinnnneerr。

Output

得分:100分

问题描述

给你一个长度为 N 的字符串 S,由小写英文字母组成。

我们用 S_i 表示 S 的第 i 个字符。

按顺序连接 S_1,S_1,S_2,S_2,\dots,S_N 和 S_N,得到一个长度为 2N 的字符串。

例如,如果 S 是 beginner,则输出 bbeeggiinnnneerr

约束

  • N 是一个整数,满足 $1 \le N \le 50$。
  • S 是一个长度为 N 的字符串,由小写英文字母组成。

输入

输入从标准输入给出,格式如下:

$N$
$S$

输出

输出答案。


样例输入 1

8
beginner

样例输出 1

bbeeggiinnnneerr

与问题描述中的示例相同。


样例输入 2

3
aaa

样例输出 2

aaaaaa

HINT

输出字符串时,每个字母各输出2次?

加入题单

算法标签: