Logo C++ Online Judge

C++

时间限制:1 s 空间限制:128 MB
TA: 惠宇龙
Statistics
Description

Write a program that reads four lines of uppercase letters (all uppercase, no more than $100$ characters per line) and then outputs a bar graph of the number of times each character appears in the input file. Format your output according to the sample output.

Input format

4 lines of uppercase letters with punctuation, no more than $100$ characters per line. Some line may have no uppercase letters, but at least one valid uppercase letter in total is ensured.

Output format

Consists of a number of lines, with the first few lines consisting of spaces and asterisks, and the last line consisting of spaces and letters. Do not print unwanted extra spaces at the end of any line. Do not print any blank lines.

Input Sample
TICKING AWAY, 
THE MOMENTS THAT MAKE UP A DULL DAY.
FRITTER AND WASTE 
THE HOURS IN AN OFFHAND WAY~

Output Sample
*
*
*                                     *
*                                     *
*                                     *
*       *                 *           *
*       *     *           *           *
*     * *     * *         *           *
*     * * *   * *       * * *     * * * *   *   *
*     * * *   * *   * * * * *     * * * *   *   *
*   * * * * * * *   * * * * * *   * * * *   *   *
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