|
|||
Bits Equalizer
You are given two nonempty strings S and T of equal length. S
contains the characters “
As an example, suppose S = “
Input Specification
The first line of the input is an integer C (C ≤ 200) that
indicates the number of test cases. Each case consists of two lines. The first line is the
string S consisting of “ Output Specification
For each test case, output the case number first as shown in the sample output, followed by the
minimum number of moves required to convert S into T. If the transition is
impossible, output “ Sample Input
Output for Sample Input
|
|||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |