Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
88553 陈昊然 字符串拼接 C++ Accepted 1 MS 272 KB 226 2024-08-19 12:01:43

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; char c[1001],q[1001]; int b=-2e9,a,p; int main(){ cin>>c>>q>>p; int n=strlen(c),d=strlen(q); if(p<=n){ cout<<c[p-1]; }else{ cout<<q[p-n-1]; } return 0; }