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

25785번 - Easy-to-Pronounce Words 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 (추가 시간 없음) 1024 MB43632329876.020%

문제

We define a word as easy-to-pronounce if every vowel in the word is immediately followed by a consonant and every consonant in the word is immediately followed by a vowel. The first letter of the word can be a vowel or consonant. Assume that the vowels are: a, e, i, o, u (note that the letter y is not a vowel, i.e., it is a consonant).

Given a word, print 1 (one) if it is easy-to-pronounce, 0 (zero) otherwise.

입력

There is only one input line; it contains a word consisting of 1-30 lowercase letters (starting in column 1). Assume that there will not be any characters other than the lowercase letters in the input.

출력

Print the appropriate message as described above.

제한

예제 입력 1

contest

예제 출력 1

0

예제 입력 2

coaches

예제 출력 2

0

예제 입력 3

cocahes

예제 출력 3

1

예제 입력 4

ali

예제 출력 4

1

힌트

출처

University > University of Central Florida > 2022 Local Programming Contest (Qualifying Round) 2번

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

출처

대학교 대회

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

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