Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
100120 | 杨登博 | 字符串拼接 | C++ | Accepted | 1 MS | 272 KB | 318 | 2024-12-02 20:38:09 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> using namespace std; int main(){ char a[1000],b[1000]; int j,m,n; cin>>a>>b>>n; j=strlen(a); m=strlen(b); if(n>j) cout<<b[n-j-1]; else cout<<a[n-1]; return 0; }