Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
12409 蒋瀚辉 墓碑上的字符 C++ Accepted 2 MS 736 KB 249 2021-05-20 19:26:35

Tests(2/2):


Code:

#include <bits/stdc++.h> using namespace std; string a,b; int len,t; int main() { cin >>t; for(int i=1;i<=t;i++) { a=""; b=""; cin >> a; cin >> b; int len=a.size(); cout << a.insert(len/2,b) << endl; } return 0; }