TsH_GD @ 2021-09-19 10:57:57
n-=(i+1);
看不懂啥意思
我的50分代码
#include<bits/stdc++.h>
using namespace std;
long long i,j,L,n;
string a;
int main(){
cin>>a;
L=a.size();
scanf("%d",&n);
while(L<n){
a+=a[L-1];
for(i=0;i<=L-2;i++) a+=a[i];
L*=2;
}
cout<<a[n-1];
}
by Blackajactic @ 2021-09-19 11:22:06
n减去i+1的值
by seh_sjij @ 2021-09-19 11:34:03
就是n=n-(i+1)