| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 62521 | 冯纪尧 | 字符串拼接 | C++ | Accepted | 1 MS | 272 KB | 253 | 2023-12-24 11:27:32 |
#include<bits/stdc++.h> using namespace std; int main(){ string a,b; cin>>a>>b; int c; cin>>c; int n=a.size(); int m=b.size(); if(n>=c){ cout<<a[c-1]; }else{ cout<<b[c-n-1]; } return 0; }