-->
当前位置:首页 > 题库

PROGRAMMING:Vertical histogram

Luz5年前 (2021-05-10)题库444
###Task description
```
Input 4 lines of text composed of all capital letters, output a vertical histogram, giving the number of times each character appears. Note: only output the number of characters, not white space characters, numbers or punctuation.
```
###Input format:
```
The input consists of four lines of text with no more than 80 characters on each line.
```
###Output format:
```
The output consists of several lines. The last line gives 26 capital letters separated by a space. The first few lines include spaces and asterisks. If each letter appears several times, an asterisk will be output above the letter. Note: the first line of output cannot be empty.
```
###Input example:
```in
THE QUICK BROWN FOX JUMPED OVER THE LAZY DOG.
THIS IS AN EXAMPLE TO TEST FOR YOUR
HISTOGRAM PROGRAM.
HELLO!
```
###Output example:
```out
*
*
* *
* * * *
* * * *
* * * * * *
* * * * * * * * * *
* * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * *
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
```
###Title Source
This topic is selected from openjudge website http://sdau.openjudge.cn/c/084/






answer:If there is no answer, please comment