Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
118505 | 李昊宇 | 字符串拼接 | C++ | Accepted | 0 MS | 276 KB | 251 | 2025-05-04 13:43:15 |
#include<bits/stdc++.h> using namespace std; int main(){ char a[100],b[100],k[200]; int n; cin>>a>>b; cin>>n; int al = strlen(a); int bl = strlen(b); for(int j=0;j<=bl-1;j++){ a[al+j] = b[j]; } cout<<a[n-1]; return 0; }