shunfurh 于 2017.09.10 09:53 提问

Vertical Histogram

Problem 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.
THIS IS AN EXAMPLE TO TEST FOR YOUR
HISTOGRAM PROGRAM.
HELLO!

Sample Output
*
*
* *
* * * *
* * * *

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

1个回答

devmiao      2017.09.27 21:52

POJ 2136 Vertical Histogram

HDU2708 Vertical Histogram【水题】
Vertical Histogram Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 5326    Accepted Submission(s): 1305 Problem Description Write a pro
Vertical Histogram垂直直方图
E - Vertical Histogram Crawling in process... Crawling failed Time Limit:1000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64u Submit Status Description Write a progra
J - Vertical Histogram(1.5.7)
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 sho
《数据结构编程实验》 1.5.7Vertical Histogram
《数据结构编程实验》 1.5.7Vertical Histogram 题解
POJ2136 Vertical Histogram【打印图案】
Vertical Histogram Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 19827   Accepted: 9483 Description Write a program to read four lines of upper case (i.e.,
POJ 2136 Vertical Histogram 打印特殊图形

Vertical Histogram HDU 2708 代码详解
Vertical Histogram Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2472    Accepted Submission(s): 536 Problem Description Write a
Vertical Histogram——字母频率柱状图（POJ2136）