题解
2024-08-04 15:07:46
发布于:浙江
3阅读
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;
}
这里空空如也
有帮助,赞一个