Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
102654 | 李禹宸 | 字符串拼接 | C++ | Wrong Answer | 1 MS | 272 KB | 275 | 2024-12-22 13:43:04 |
#include<iostream> #include<cstring> using namespace std; int main(){ char str1[150],str2[150]; int n,a,b; cin>>str1>>str2>>n; a=strlen(str1); b=strlen(str2); str1[a]=str2[0]; for(int i=1;i<=b;i++){ str1[a+i]=str2[0+i]; } cout<<str1[n]; return 0; }
------Input------
executing users 13
------Answer-----
r
------Your output-----
s