0
点赞
收藏
分享

微信扫一扫

HDOJ  2567   寻梦

sullay 2022-08-22 阅读 63


题目:​​http://acm.hdu.edu.cn/showproblem.php?pid=2562​​

#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
int T;
string str1,str2;
cin>>T;
while(T--)
{
cin>>str1>>str2;
for(int i=0;i<str1.length();i++)
{
cout<<str1[i];
if(i==(str1.length()/2-1))
cout<<str2;
}
cout<<endl;
}
return 0;
}

举报

相关推荐

0 条评论