Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
127024 王子涵 墓碑上的字符 C++ Accepted 1 MS 284 KB 315 2025-07-23 15:41:14

Tests(2/2):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ char a[50],b[50]; int n,l; cin>>n; for(int i=1;i<=n;i++) { cin>>a>>b; l=strlen(a)/2; for(int j=0;j<l;j++) cout<<a[j]; cout<<b; for(int j=l;j<strlen(a);j++) cout<<a[j]; cout<<endl; } return 0; }