Logo
(追記) (追記ここまで)

11319번 - Count Me In 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 256 MB24951722158371.178%

문제

Given a sentence in English, output the counts of consonants and vowels.

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.

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.

제한

예제 입력 1

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

예제 출력 1

12 6
10 8
11 5

힌트

출처

Contest > Calgary Collegiate Programming Contest > CCPC 2015 Division 2 A번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /