题解
2023-07-25 18:29:59
发布于:河北
2阅读
0回复
0点赞
#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;
}
这里空空如也
有帮助,赞一个