Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
100157 | 令狐文丽 | 字符串拼接 | C++ | Wrong Answer | 1 MS | 272 KB | 319 | 2024-12-05 20:37:12 |
#include<iostream> #include<cstring> using namespace std; int main(){ char ch1[1000],ch2[1000]; int ch1len,ch2len,n,i; cin>>ch1>>ch2; cin>>n; ch1len = strlen(ch1); ch2len = strlen(ch2); i = ch1len; for(int j = 0;j < ch2len;j++){ ch1[i+j] = ch2[j]; } cout<<ch1<<endl<<ch1[n-1]; return 0; }
------Input------
executing users 13
------Answer-----
r
------Your output-----
executingusers r