#224. 字符串末尾字符大小写转换
字符串末尾字符大小写转换
Uppercase Last 3 Characters
Background
Congcong is learning about string manipulation. He encountered an interesting task that requires specific modifications to a string.
Problem Description
Given a string, return a new string where the last characters are now in upper case. If the string has less than characters, uppercase whatever is there. Note that str.toUpperCase() returns the uppercase version of a string.
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 modified string.
Sample
Hello
"HeLLO"
hi there
"hi thERE"
hi
"HI"
Sample Explanation
For the first sample input "Hello\