Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
63493 谢绍澜 字符串拼接 C++ Accepted 2 MS 276 KB 240 2024-01-08 18:36:28

Tests(10/10):


Code:

#include<iostream> #include<cstring> using namespace std; int main(){ char a[1001],b[1001]; int n,c; cin>>a>>b>>n; c=strlen(a); if(n<=c) cout<<a[n-1]; else cout<<b[n-c-1]; return 0; }