Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
158494 格林老师 墓碑上的字符 C++ Accepted 1 MS 280 KB 256 2026-08-22 11:22:21

Tests(2/2):


Code:

#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; while(n--){ string s1,s2; cin>>s1>>s2; int mid=s1.size()/2; s1.insert(mid,s2); cout<<s1<<endl; } return 0; }