#T598. 奇偶位互换

奇偶位互换

Description

Given a binary string of even length, please write a program to swap the bits at odd and even positions.

Input Format

The input contains multiple test cases.
The first line of input is an integer C, indicating the number of test cases.
For each test case, the input is a binary string with an even length (length <= 50).

Output Format

For each test case, output the result after swapping the bits at odd and even positions. Each output should occupy a single line.

2
0110
1100
1001
1100

译文

CodesOnline