ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Разделы > Linear Data Structures: Arrays > задача:


51088 - Number of letters

Гость
• Вопросы к жюри (1)

Задачи раздела

• 51098 - Rotate a matrix
• 50838 - Balanced Numbers
• 50851 - Repeated Numbers
• 51061 - The Longest Path
• 51083 - Grades Histogram
• 51084 - Reflect a matrix
• 51011 - Decoding the Path
• 50515 - Lines - Revisited
• 51088 - Number of letters
• 50913 - Manhattan Distance
• 51125 - Filling an Array 3
• 50824 - Sum of Group Maxes
• 50449 - The biggest result
• 51172 - The biggest Minute
• 51085 - xyx Divisible by k
• 51087 - Are they the same?
• 50442 - Polynomial Addition

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
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