qz5zxieliyi @ 2023-07-20 17:24:50
#include<bits/stdc++.h>
using namespace std;
long long n,l;
string s;
int main()
{
cin>>s>>n;
l=s.size();
while(l<=n)l=l*2;
while(n>s.size())
{
l=l/2;
if(n>l)n=n-l-1;
}
cout<<s[n-1];
return 0;
}
by qz5zxieliyi @ 2023-07-20 20:35:38
@qz5zxieliyi 已过