过程如下
2023-05-14 20:49:07
发布于:广东
63阅读
0回复
1点赞
#include<iostream>
#include<cstring>
using namespace std;
int main(){
int n;
cin >> n;
string a,b,c;
b = "123";
a = "4567";
c = b+a;
while(c.size()<n){
a = b;
b = c;
c = b + a;
}
cout << c[n-1];
return 0;
}
这里空空如也
有帮助,赞一个