QOJ.ac

QOJ

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

#18388. 跆拳道与拳击相结合的运动

الإحصائيات

“跆拳搏击”(Tae Bo)是将跆拳道(Taekwondo)和拳击(Boxing)结合在一起的运动!

TAE BO DIET, 2003

Kuong 在看到“跆拳搏击”后产生了这样的想法:“既然跆拳道和拳击结合在一起叫跆拳搏击,那如果把射箭(Archery)和举重(Powerlifting)结合在一起,是不是叫‘射举’(Yangpa,韩语意为洋葱)呢?我也来创造一种运动吧!”

将运动 $A$ 和 $B$ 的名称合并,会产生一种新的运动名称,其构成为 $A$ 的第一个音节与 $B$ 的第一个音节拼接而成。如果其中任何一个名称不存在第一个音节,则无法创造出新的运动名称。

字符串的“第一个音节”定义为:包含字符串中第一个元音,且不包含该元音之后出现的第一个辅音的最长前缀。如果字符串中没有元音,或者第一个元音之后没有辅音,则该字符串不存在第一个音节。以下是若干字符串第一个音节的示例:

  • taekwondo $\rightarrow$ tae
  • boxing $\rightarrow$ bo
  • tae 中没有元音,因此不存在第一个音节。
  • ski 虽然有元音,但第一个元音之后没有辅音,因此不存在第一个音节。

元音指 a, e, i, o, u 这 5 个字母,辅音指除这 5 个字母以外的所有字母。

请输出 Kuong 新创造的运动名称。

输入格式

第一行输入运动 $A$ 的名称 $S_A$ ($1 \le |S_A| \le 100$)。

第二行输入运动 $B$ 的名称 $S_B$ ($1 \le |S_B| \le 100$)。

运动名称均仅由小写英文字母组成。

输出格式

输出运动 $A$ 和运动 $B$ 合并后的新运动名称。

如果根据给定规则无法创建运动名称,则输出 no such exercise

样例

输入格式 1

taekwondo
boxing

输出格式 1

taebo

输入格式 2

swimming
racing

输出格式 2

swira

输入格式 3

mtb
running

输出格式 3

no such exercise

输入格式 4

archery
powerlifting

输出格式 4

apo

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.