| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 78235 | 申明宇 | 字符串拼接 | C++ | Accepted | 1 MS | 276 KB | 256 | 2024-06-16 18:11:45 |
#include<iostream> #include<cstring> using namespace std; int main(){ char a[101],c[101]; int s,v,i; cin>>a>>c>>i; s=strlen(a); v=strlen(c); if(i<s) cout<<a[i-1]; else cout<<c[i-1-s]; return 0; }