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

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); strcat(a,b); cout<<a[e-1]; return 0; }