Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
100159 | 令狐文丽 | 字符串拼接 | C++ | Accepted | 1 MS | 280 KB | 190 | 2024-12-05 20:38:57 |
#include<iostream> #include<cstring> using namespace std; int main(){ char ch1[1000],ch2[1000]; int n; cin>>ch1>>ch2; cin>>n; strcat(ch1,ch2); cout<<ch1[n-1]; return 0; }