题解
2026-09-29 13:00:20
发布于:广东
5阅读
0回复
0点赞
这是代码:
#include <cstdio>
#include <string>
int main(){
std::string a = "4567", b = "123";
int n; scanf("%d", &n);
while (b.size() < n){
std::string c = b + a;
a = b;
b = c;
}
printf("%c", b[n - 1]);
return
这里空空如也








有帮助,赞一个