变变变
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.
题目描述
有一个长度为 、只包含小写字母的字符串 ,对其进行 次操作,每次操作记为 ,表示将当前 中所有的字母 替换成 。求经过这 次操作后的 。
数据范围
- 中的所有字符均为小写字母
- 是小写字母
- 是整数
输入格式
输入格式如下所示:
输出格式
经过 次操作后得到的字符串。
样例 #1
样例输入 #1
8
zhixinhs
4
z y
s n
h u
i a
样例输出 #1
yuaxanun
样例说明:字符串 的变换过程为 zhixinhs
yhixinhs
yhixinhn
yuixinun
yuaxanun
。
样例 #2
样例输入 #2
3
abc
4
a a
s k
n n
z b
样例输出 #2
abc
样例说明:如本例所示,可能会有 的变换,或者 中没有 的变换。
样例 #3
样例输入 #3
34
supercalifragilisticexpialidocious
20
g c
l g
g m
c m
r o
s e
a a
o f
f s
e t
t l
d v
p k
v h
x i
h n
n j
i r
s i
u a
样例输出 #3
laklimamriiamrmrllrmlrkramrjimrial
C23天河四分之三学年学习质量检测
- Status
- Done
- Rule
- IOI
- Problem
- 6
- Start at
- 2024-4-12 18:30
- End at
- 2024-4-12 21:20
- Duration
- 2.8 hour(s)
- Host
- Partic.
- 34