超级台阶
来源:互联网 发布:社交网络图 软件 编辑:程序博客网 时间:2024/04/30 05:02
//不知道为什么它被归为了动归类。。。#include<iostream>using namespace std;int main(){ int n,m; int a[45]; int i; a[1]=0; a[2]=1; a[3]=2; for(i=4;i<=45;i++) a[i]=a[i-1]+a[i-2]; cin>>n; while(n--) { cin>>m; cout<<a[m]<<endl; } return 0;}
0 0
- 超级台阶
- 超级台阶
- 超级台阶
- 超级台阶
- 超级台阶
- 超级台阶
- 超级台阶
- 超级台阶
- 超级台阶
- 超级台阶
- 超级台阶
- 超级台阶
- 超级台阶
- 超级台阶
- 超级台阶
- 超级台阶
- 超级台阶
- 超级台阶
- NSDateFormatter相关整理
- "我要上Google"官方网站正式开启,安全稳定上Google和Gmail
- LUT..FPGA查找表
- java 学习写架构必会几大技术点
- 黑马程序员-java内存管理
- 超级台阶
- 单高斯背景建模原理及代码实现
- Linux 平台下 RMAN 全备 和 增量备份 shell 脚本
- Spark 专题理论学习与技术实践
- 生产者与消费者
- MySQL查询对NULL的处理
- dandande 忧伤
- ant 实现批量打包android应用
- 黑马程序员-Java传值与传引用