Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
62515 李琥博 字符串拼接 C++ Accepted 3 MS 2228 KB 278 2023-12-24 11:17:06

Tests(10/10):


Code:

#include<iostream> #include<cstring> using namespace std; int main(){ char a[1000001]={0},b[1000001]={0},s[1000001]; scanf("%s",a); scanf("%s",b); int x=strlen(a),c=strlen(b),q; cin>>q; if(q>x){ cout<<b[q-x-1]; } else{ cout<<a[q-1]; } return 0; }