|
|||
Shape ECNAnna is playing with her new game, “The Word Transformer.” The game has the following objective. A word needs to be transformed into another given word using a minimum number of edits with the following operations: insertion, deletion, or substitution of a single character. Unfortunately, the game had a malfunction, and in order for Anna to win the game, she needs to follow the following rules:
Input SpecificationThe first line of the input contains n, the number of words to be transformed (1 < n ≤ 50). This is followed by n words on separate lines, containing only uppercase letters of the English alphabet. The length of the words is at most 100 characters. Output Specification
Output one number, the number of appearances of “ Sample Input 1
Output for Sample Input 1
Sample Input 2
Output for Sample Input 2
|
|||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |