[BOJ 11319] Count Me In

View as PDF

Submit solution

Points: 1
Time limit: 1.0s
Memory limit: 256M

Problem types
Allowed languages
Assembly, Awk, C, C++, Java, Pascal, Perl, Python, Sed, Text

Given a sentence in English, output the counts of consonants and vowels.</p>

Vowels are letters in [’A’,’E’,’I’,’O’,’U’,’a’,’e’,’i’,’o’,’u’].

입력 형식

The test file starts with an integer S(1 ≤ S ≤ 100), the number of sentences.</p>

Then follow S lines, each containing a sentence - words of length 1 to 20 separated by spaces. Every sentence will contain at least one word and be comprised only of characters [a-z][A-Z] and spaces. No sentence will be longer than 1000 characters.

출력 형식

For each sentence, output the number of consonants and vowels on a line, separated by space.

예제 입력

3
You can win this thing
May be too optimistic
Just try to have fun

예제 출력

12 6
10 8
11 5

Comments

There are no comments at the moment.