Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
155546 肖之睿 字符串拼接 C++ Accepted 1 MS 272 KB 310 2026-06-07 15:24:24

Tests(10/10):


Code:

#include<iostream> #include<cstring> using namespace std; char a[1000]; char b[1000]; //sizeof(变量);计算某个变量的大小; int main(){ int c,d,e; cin>>a; cin>>b; cin>>e; c=strlen(a); d=strlen(b); for(int i=0;i<d;i++){ a[c]=b[i]; c++; } cout<<a[e-1]; return 0; }