Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
100118 | 郝王骏程 | 字符串拼接 | C++ | Wrong Answer | 1 MS | 276 KB | 270 | 2024-12-02 20:29:37 |
#include<iostream> #include<cstring> using namespace std; int main(){ int a1,b1,n; char a[1000],b[1000]; cin>>a>>b; cin>>n; a1=strlen(a); b1=strlen(b); if(n>a1) cout<<b[n-b1-1]; else cout<<a[n-1]; return 0; }
------Input------
executing users 13
------Answer-----
r
------Your output-----