Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
118506 李昊宇 字符串拼接 C++ Accepted 1 MS 276 KB 270 2025-05-04 13:46:05

Tests(10/10):


Code:

#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]; } */ strcat(a,b); cout<<a[n-1]; return 0; }