#T407. 奇偶位互换
奇偶位互换
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.
Following are C test cases, each consisting of 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
(注:由于"CodesOnline"是一个专有名词或品牌名称,通常保持原样不翻译。如果上下文需要解释,可以补充说明其含义,例如"代码在线平台"或"在线编程资源"等,但此处仅作直接保留处理)