Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
128045 | 唐诗阳 | 字符串拼接 | C++ | Accepted | 1 MS | 272 KB | 318 | 2025-07-30 19:48:19 |
#include<iostream> #include<cstdio> //scanf()\printf() #include<cstring> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ char a[1000],b[1000]; int n,s1=strlen(a),s2=strlen(b); cin>>a>>b>>n; strcat(a,b); cout<<a[n-1]; return 0; }