QOJ.ac

QOJ

حد الوقت: 3 s حد الذاكرة: 1024 MB مجموع النقاط: 100

#4284. 名字生成

الإحصائيات

Ingrid 是自行车零售商 BIKEA 的创始人和首席执行官。该公司销售供客户自行组装的自行车。

BIKEA 有 $N$ 种不同的自行车。Ingrid 想要为每种自行车起一个易于记忆的名称,但手动完成这项工作非常耗时。

给定数字 $N$,你的任务是生成 $N$ 个不同的名称。为了使名称易于阅读,它们必须满足以下条件:

  1. 每个名称的长度在 3 到 20 之间,且仅由小写英文字母组成。
  2. 名称中不能有三个连续的字母全为元音或全为辅音。在此,我们将 a, e, i, o, u 视为元音,其余 21 个字母视为辅音。

例如,hello、abc 和 lkab 都是有效的名称,而 ingrid、bo 和 louise 是无效的。

输入格式

输入包含一个整数 $N$ ($1 \le N \le 30000$),表示要生成的名称数量。

输出格式

输出 $N$ 行,每行包含一个名称。可以证明,生成 $N$ 个不同的名称是可能的。

样例

样例输入 1

3

样例输出 1

abdullah
bjorn
nils

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.