#273. 字符串左旋2位
字符串左旋2位
String Left Rotate 2
Background
This is a basic string manipulation problem designed to test your understanding of string slicing and concatenation.
Problem Description
Given a string, return a "rotated left 2" version where the first 2 characters are moved to the end. The string length will be at least 2.
Input Format
Input is given from Standard Input in the following format.
A string .
Output Format
Output is printed to Standard Output in the following format.
The rotated string.
Sample
Hello
lloHe
java
vaja
Hi
Hi
Sample Explanation
For the first sample, the first two characters of "Hello" are "He". Moving them to the end results in "lloHe". For the second sample, the first two characters of "java" are "ja". Moving them to the end results in "vaja". For the third sample, the first two characters of "Hi" are "Hi". Moving them to the end results in "Hi".
Constraints
Time limit: 1 second, Memory limit: 1024 KiB for each test case.