lady_GG @ 2019-09-14 19:33:04
不是此题
#include<bits/stdc++.h>
using namespace std;
int n,k=3,v=3,l;
string r;
char a[1000001]={' ','m','o','o'};
void f(){
while(k<n){
char s[10000001];
for(int i=1;i<=k;i++){
s[i]=a[i];
}
int g=k;
k=k+v+2+1+k;
v++;
a[v]='m';
for(int i=1;i<=l+2;i++){
v++;
a[v]='o';
}
for(int i=1;i<=g;i++){
v++;
a[v]=s[i];
}
}
}
int main(){
cin>>n;
f();
cout<<a[n]<<endl;
return 0;
}
by t162 @ 2019-09-14 19:35:09
while(k<n){
char s[10000001];
}
by Hydrate @ 2019-09-14 19:35:18
不是此题发学术版不就好了 (
by lady_GG @ 2019-09-14 19:37:17
@Bambusoideae @北辰yama
我没搞出来
by lady_GG @ 2019-09-14 19:55:36
@Bambusoideae ??
by wpy233 @ 2019-09-15 17:43:28
@lady_GG dalao,窝第一次听说在main函数里开一千万个char 不会REQAQ