#275. 字符串右旋2位
字符串右旋2位
Rotate String Right 2
Background
Problem Description
Given a string, return a "rotated right 2" version where the last 2 chars are moved to the start. The string length will be at least 2.
Input Format
The input is given from standard input in the following format.
The input consists of a single string .
Output Format
The output should be printed to standard output in the following format.
Output the rotated string.
Sample
Hello
"loHel"
java
"vaja"
Hi
"Hi"
Constraints
Time Limit: 1s, Memory Limit: 1024KiB