• 沒有找到結果。

In this problem, you will be given a pair of names, one of which is that of a player in real life and the second found in a game

N/A
N/A
Protected

Academic year: 2021

Share "In this problem, you will be given a pair of names, one of which is that of a player in real life and the second found in a game"

Copied!
1
0
0

加載中.... (立即查看全文)

全文

(1)

11713 Abstract Names

Some of you may have noticed that in certain computer games, particularly the ones based on sports, the spelling of names are mutated so that they are not an exact duplicate of the real entity. This is done to avoid hassles of taking permission from each player as well as any patent issues. In this problem, you will be given a pair of names, one of which is that of a player in real life and the second found in a game. You will have to determine if the two names are same, that is the second one is obtained by mutating the first.

Two names are considered same if they are of same length and they only vary at positions where vowels occur. That means, a name which can be obtained by replacing zero or more vowels by other vowels to obtain a new name are considered same, provided they have same length. For example, both polo and pola are same as pele but not pelet or bele.

Input

First line of input contains a positive integer n≤ 20, where n denotes the number of test cases. This will be followed by 2∗ n lines where each line will contain a name of at most 20 characters. The names will consist of lower case letters only.

Output

For each case of input, there will be one line of output. It will be ‘Yes’ if the second name can be obtained by mutating the first name, otherwise it will be ‘No’.

Sample Input 5

pele polo pele pola ronaldo ronaldino pele pelet pele bele

Sample Output Yes

Yes No No No

參考文獻

相關文件

• Hence it may surprise you that most of the complexity classes that we have seen so far have maximal elements. a Cook (1971) and

The performance guarantees of real-time garbage collectors and the free-page replenishment mechanism are based on a constant α, i.e., a lower-bound on the number of free pages that

In taking up the study of disease, you leave the exact and certain for the inexact and doubtful and enter a realm in which to a great extent the certainties are replaced

Once you get down to a purely business level, your influence is gone and the true light of your life isdimmed. You must work in the missionary spirit, with a breadth of charity

6 《中論·觀因緣品》,《佛藏要籍選刊》第 9 冊,上海古籍出版社 1994 年版,第 1

The first row shows the eyespot with white inner ring, black middle ring, and yellow outer ring in Bicyclus anynana.. The second row provides the eyespot with black inner ring

Write the following problem on the board: “What is the area of the largest rectangle that can be inscribed in a circle of radius 4?” Have one half of the class try to solve this

If that circle is formed into a square so that the circumference of the original circle and the perimeter of the square are exactly the same, the sides of a pyramid constructed on