| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 62632 | 邓昊源 | 字符串拼接 | C++ | Wrong Answer | 1 MS | 272 KB | 255 | 2023-12-24 17:17:48 |
#include<bits/stdc++.h> using namespace std; int main(){ char a[1001],b[1001],n; cin >> a >> b; cin >> n; int la = strlen(a); int m = strlen(b); if(n <= la){ cout << a[n-1]; }else{ cout << b[n-la-1]; } return 0; }
------Input------
executing users 13
------Answer-----
r
------Your output-----