B. [R56B]复读机

    Type: Default 1000ms 256MiB

[R56B]复读机

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

时空限制

1S/512M

题目描述

小明有一台复读次数为 kk 的复读机,小明可以在复读机中输入一个字符串 ss ,然后复读机会将字符串 ss 的每一个字符重复输出 kk 次。

例如,小明在复读机中输入了 dmyk=2k = 2 ,复读机会输出 ddmmyy

小明在复读机中输入了一个长度为 nn 的字符串 ss ,他想知道复读机会输出什么结果。

格式

输入格式

第一行两个整数 nnkk,表示字符串的长度和复读次数。

第二行输入一个长度为 nn 的字符串表示小明的输入。

输出格式

输出一个字符串表示复读机输出的结果。

样例

样例输入 #1

3 2
dmy

样例输出 #1

ddmmyy

数据规模

对于 100%100\% 的数据,1n,k501 \le n, k \le 50,且 ss 只由小写字母组成。

代码源挑战赛 Round 56

Not Attended
Status
Done
Rule
DMY
Start at
2026-4-10 20:00
End at
2026-4-10 21:30
Duration
1.5 hour(s)
Host
Partic.
430