Pro.ID22060 TitleVertical Title链接http://10.20.2.8/oj/exercise/problem?problem_id=22060 AC4 Submit106 Ratio3.77% 时间&空间限制描述Write a program to read four lines of upper case (i.e., all CAPITAL LETTERS) text input (no more than 72 characters per line) from the input file and print a vertical histogram that shows how many times each letter (but not blanks, digits, or punctuation) appears in the all-upper-case input. Format your output exactly as shown. 输入* Lines 1..4: Four lines of upper case text, no more than 72 characters per line. 输出Description Write a program to read four lines of upper case (i.e., all CAPITAL LETTERS) text input (no more than 72 characters per line) from the input file and print a vertical histogram that shows how many times each letter (but not blanks, digits, or punctuation) appears in the all-upper-case input. Format your output exactly as shown. Input * Lines 1..4: Four lines of upper case text, no more than 72 characters per line. Output * Lines 1..??: Several lines with asterisks and spaces followed by one line with the upper-case alphabet separated by spaces. Do not print unneeded blanks at the end of any line. Do not print any leading blank lines. Sample Input THE QUICK BROWN FOX JUMPED OVER THE LAZY DOG. Sample Output * Source 样例输入THE QUICK BROWN FOX JUMPED OVER THE LAZY DOG. 样例输出 * 作者 |