Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
164173 汪义罗 字符串拼接 C++ Accepted 1 MS 276 KB 239 2026-11-01 10:49:24

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ string a; string b; cin>>a>>b; int x; cin>>x; int i=1; while(a[i]!='\0'){ i++; } if(x<=i){ cout<<a[x-1]; }else{ cout<<b[x-i-1]; } return 0; }