Run ID:88553
提交时间:2024-08-19 12:01:43
#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; }