2197. Vertical Histogram

单点时限: 2.0 sec

内存限制: 256 MB

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.

输出格式

  • 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.

23 人解决,31 人已尝试。

26 份提交通过,共有 97 份提交。

4.9 EMB 奖励。

创建: 15 年,8 月前.

修改: 6 年,7 月前.

最后提交: 9 月,1 周前.

来源: USACO 2003 February Orange

题目标签