#284. 字符串前两字符提取与填充
字符串前两字符提取与填充
Extract First Two Characters
Background
This is a basic string processing problem designed to test your ability to determine string length and extract characters.
Problem Description
Given a string, return a string of length made of its first characters. If the string length is less than , use '@' for the missing characters.
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.
A string of length .
Sample
hello
"he"
hi
"hi"
h
"h@"
Sample Explanation
For the first sample "hello\