’. 转啊转

    Type: Default 1000ms 256MiB

转啊转

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.

Description

玩转字符串,是一个ACMer的基本操作,现在有一个任务,就是把字符串前面的若干个字符转移到字符串的尾部。比如输入字符串abcdefg和数字n=2,该函数将返回左旋转 2 位得到的结果cdefgab

Input

先输入一个字符串 再输入向左旋转次数

Output

输出旋转过后的字符串

Samples

abcdefg
2
cdefgab

Limitation

n小于字符串长度 字符串长度[0,1000]

第七届SWPU-ACM新生预选赛

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
103
Start at
2022-9-19 14:00
End at
2022-10-28 14:00
Duration
936 hour(s)
Host
Partic.
58