题目说明:
示例代码:
// day06_review.cpp: 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include <windows.h>
#include <string>
#include <iostream>
using namespace std;
//by zhaocl
int main()
{
int n;
string s;
cin >> n;
while( n-- )
{
cin >> s;
for( int i = 0; i < s.length(); i += 2 )
{
cout << s[i];
}
cout << " ";
for( int i = 1; i < s.length(); i += 2 )
{
cout << s[i];
}
cout << endl;
}
system( "pause" );
return 0;
}