#T801. 奇偶位互换
奇偶位互换
Description
Given a binary string of even length, 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.
Each of the following C lines contains a binary string, guaranteed to be of 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