HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Linear Data Structures: Arrays > problem:


51088 - Number of letters

Guest
• Review clarifications (1)

Section problems

• 51126 - Dr. Fllanxha
• 51021 - Number of Nodes
• 51044 - Number of Trees
• 51098 - Rotate a matrix
• 51061 - The Longest Path
• 51083 - Grades Histogram
• 51084 - Reflect a matrix
• 51011 - Decoding the Path
• 51088 - Number of letters
• 51172 - The biggest Minute
• 51125 - Filling an Array 3
• 51085 - xyx Divisible by k
• 51087 - Are they the same?
• 51091 - Guess the number - 1
• 51015 - Student Scholarships
• 51008 - Sum of Regional Maxes
• 51020 - Number of nodes removed

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
Question by Ibrahim Mesecan.

Number of letters

Question:Given a text, show the existing letters with their frequencies. Read the text until the end and show the number of occurrences for each letter appearing. (Note:: Uppercase or lowercase does not make any difference count C and c as the same).

Input specification: You will be given a text possibly containing letters, digits, and some special characters from ASCII table (unknown number of lines of text).

Output specification: Show only the letters and digits which are appearing in the text with their number of occurrences.

Sample Input I Sample Input II
Given a text (Note 1: Uppercase or lowercase
it's the same).
Sample Output I Sample Output II
A 1
E 2
G 1
I 1
N 1
T 2
V 1
X 1
A 3
C 2
E 7
H 1
I 1
L 1
M 1
N 1
O 3
P 2
R 3
S 4
T 3
U 1
W 1
1 1



Для отправки решений необходимо выполнить вход.

www.contester.ru