#267. 字符串末尾字符重复
字符串末尾字符重复
String Repetition
Background
This is a simple string manipulation problem.
Problem Description
Given a string, return a new string made of 3 copies of the last 2 characters of the original string. 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 to Standard Output in the following format.
A new string.
Sample
Hello
lololo
ab
ababab
Hi
HiHiHi
Sample Explanation
Sample 1: The last two characters of "Hello" are "lo\