#P13593. [NWRRC 2023] Missing Vowels
[NWRRC 2023] Missing Vowels
题目描述
There are many ways to write a word on paper. For example, some writing systems, like Arabic and Hebrew, omit most vowels, although they write some of them.
In this problem, we will only consider strings consisting of English letters and hyphens. Letters , , , , , and are considered to be vowels, while hyphens and all other letters are considered to be consonants. All comparisons are case-insensitive: uppercase and lowercase versions of the same letter are considered equal.
You are given two strings and , called the name and the name, respectively. Your task is to check whether the short name can be obtained from the full name by omitting some vowels (possibly none).
输入格式
The first line contains a single string , denoting the short name.
The second line contains a single string , denoting the full name.
Each string is non-empty and consists of at most English letters and hyphens.
输出格式
Print if the short name can be obtained from the long name by omitting some vowels, and otherwise.
Shrm-el-Shikh
Sharm-el-Sheikh
Same
Eilot
Eilat
Different
Saint-Petersburg
Saint-Petersburg
Same
Bcdfghjklmnpqrstvwxz
Abcdefghijklmnopqrstuvwxzyy
Same
Aa
aaaA
Same
Etis-Atis-Amatis
Etis-Atis-Animatis
Different
will-the-wisp
will-o-the-wisp
Different
--a-very-short-name--
long-name
Different