아직 만들고 있는 페이지입니다.

이 페이지는 아직 만드는 중입니다. 보이는 내용은 바뀔 수 있습니다.

Name Generation

시간 제한3초메모리 제한1024 MB

요약
길이 3에서 20 사이의 이름 N개를 만들되, 연속한 세 글자가 모두 모음이거나 모두 자음이면 안 됩니다.
난이도

보통10점 중 4점

유형
문자열, 조합론, 완전 탐색
정답자
아직 제출이 없습니다

문제

Ingrid is the founder and CEO of bicycle retailer BIKEA. The company sells bicycles for customers to assemble themselves.

BIKEA has NN different bicycles to offer. Ingrid wants to give each of them a human-readable name, to make it easy to remember. But doing this by hand is a very time consuming task.

You are given the number NN, and your task is to generate NN different names. To make the names readable, they must satisfy the following:

  1. Each name has length between 33 and 2020, and only consists of lowercase English letters.
  2. Three consecutive letters of a name cannot all be vowels or consonants. Here we consider a, e, i, o, u vowels, while the remaining 2121 letters are consonants.

For example, hello, abc, and lkab are all valid names, whereas ingrid, bo and louise are invalid.

입력

The input consists of one integer NN (1≤N≤300001 \leq N \leq 30000), the number of names to generate.

출력

Print NN lines, each of them containing a name. It can be proven that it is possible to generate NN different names.

예제1

  1. 예제 1

    입력
    3
    
    예상 출력
    abdullah
    bjorn
    nils