UVa 10008

From Algorithmist

Jump to: navigation, search

Contents

[edit] 10008 - What's Cryptanalysis?

[edit] Summary

Given lines of string, count the number of occurrences of A to Z, ignoring case.

[edit] Explanation

Go through each line, and increment if it's within the range. Sort the characters afterwards. Trivial String and Sorting problem.

[edit] Input

3
This is a test.
Count me 1 2 3 4 5.
Wow!!!!  Is this question easy?

[edit] Output

S 7
T 6
I 5
E 4
O 3
A 2
H 2
N 2
U 2
W 2
C 1
M 1
Q 1
Y 1
Personal tools