Type: Default 1000ms 256MiB

C++-字符串-旋转操作

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.

Background

Description

旋转操作。 把字符串旋转一次操作等价于把字符串的最后一个字符改放到第1个字符的前面。 例如:”abcdefg”旋转一次为”gfedcba” image

Format

Input

Output

Samples

abcdefg
gfedcba

Limitation

1s, 1024KiB for each test case.