| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 2 초 | 1024 MB | 158 | 65 | 51 | 38.636% |
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 'a', 'e', 'i', 'o', 'u', and 'y' 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 $s$ and $f,ドル called the short name and the full name, respectively. Your task is to check whether the short name $s$ can be obtained from the full name $f$ by omitting some vowels (possibly none).
The first line contains a single string $s,ドル denoting the short name.
The second line contains a single string $f,ドル denoting the full name.
Each string is non-empty and consists of at most 1000ドル$ English letters and hyphens.
Print "Same" if the short name $s$ can be obtained from the long name $f$ by omitting some vowels, and "Different" 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