使用道具 举报
#include<stdio.h> int main() { int Fibonacci(int x); int m,n; scanf("%d",&m); for(int i=1;i<=m;i++) { scanf("%d",&n); printf("%d ",Fibonacci(n)); } return 0; } int Fibonacci(int x) { if(x==1||x==2) x=1; else x=Fibonacci(x-1)+Fibonacci(x-2); return x; }
本版积分规则 发表回复 回帖并转播 回帖后跳转到最后一页
江苏省公安厅
江苏省通信管理局
浙江省台州刑侦支队
DEFCON GROUP 86025
邮箱系统
应急响应中心
红盟安全
官方QQ群:112851260
官方邮箱:security#ihonker.org(#改成@)
官方核心成员
Archiver|手机版|小黑屋| ( 沪ICP备2021026908号 )
GMT+8, 2025-6-17 18:11 , Processed in 0.067059 second(s), 27 queries , Gzip On.
Powered by ihonker.com
Copyright © 2015-现在.