Lhy2009 @ 2020-11-24 17:00:36
#include<iostream>
#include<string>
using namespace std;
string did(string n){
string re=n;
long long l=n.length();
re+=n[l-1];
for(long long i=0;i<l-1;i++){
re+=n[i];
}
return re;
}
int main(){
string x;
long long n;
cin>>x;
cin>>n;
while(x.length()<n){
x=did(x);
}
cout<<x[n-1]<<endl;
return 0;
}
???
by KellyFrog @ 2020-11-24 17:30:33
by Lhy2009 @ 2020-12-28 18:56:01
哦,谢谢