Bessie wants to go to sleep, but the farm's lights are keeping her awake. How can she turn them off?
Bessie has two bit strings of length N (2≤N≤20), representing a sequence of lights and a sequence of switches, respectively. Each light is either on (1) or off (0). Each switch is either active (1) or inactive (0).
A *move* consists of the following sequence of operations:
For T (1≤T≤2⋅105) instances of the problem above, count the minimum number of moves required to turn all the lights off.
First line contains T and N.
Next T lines each contain a pair of length-N bit strings.
For each pair, the minimum number of moves required to turn all the lights off.