QOJ.ac

QOJ

Limite de temps : 1.0 s Limite de mémoire : 256 MB Points totaux : 100 Hackable ✓

#9893. 缩写

Statistiques

在托福(TOEFL)考试中,听力部分非常重要,但对大多数学生来说也很难,因为他们通常很难记住整段文章。为了帮助自己记忆内容,学生们可以写下一些必要的细节。然而,由于单词长度的原因,写下完整的单词并不容易。这就是为什么我们决定使用缩写来表示整个单词。

获取缩写非常简单,我们所要做的就是保留辅音字母并删除元音字母。在英语字母表中,我们将 ‘a’、‘e’、‘i’、‘y’、‘o’、‘u’ 视为元音,其余字母视为辅音。例如,“subconscious” 将表示为 “sbcnscs”。

然而,有一个例外:如果元音出现在第一个字母,则应保留它而不是将其删除。例如,“oipotato” 应表示为 “optt”。

既然你已经学会了如何使用这种缩写方法,现在是时候进行一些练习了。我们总共为你提供 $T$ 个单词,你的任务是将它们以缩写形式表示出来。

输入格式

输入包含多个测试用例。输入的第一行包含一个整数 $T$(约 100),表示测试用例的数量。对于每个测试用例:

唯一的一行包含一个字符串 $s$ ($1 \le |s| \le 100$),由小写英文字母组成,表示需要缩写的单词。

输出格式

对于每个测试用例,输出一行包含一个字符串,即给定单词的正确缩写。

样例

输入 1

5
subconscious
oipotato
word
symbol
apple

输出 1

sbcnscs
optt
wrd
smbl
appl

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.