HDU-2045不容易系列之(3)—— LELE的RPG难题
来源:互联网 发布:php在线文件管理器 编辑:程序博客网 时间:2024/05/22 06:50
题解:
http://blog.csdn.net/jiahui524/article/details/6620997
#include <iostream>#define N 55int n;long long f[N];int main(){f[1]=3;f[2]=6;f[3]=6;for(int i=4;i!=51;i++){f[i]=f[i-1]+2*f[i-2];}while(std::cin>>n){std::cout<<f[n]<<std::endl;}}
- HDU——2045——( 不容易系列之(3)—— LELE的RPG难题 )
- HDU—— 2045 不容易系列之(3)—— LELE的RPG难题
- HDU 2045 不容易系列之(3)—— LELE的RPG难题
- hdu 2045 不容易系列之(3)—— LELE的RPG难题(递推)
- hdu 2045 不容易系列之(3)—— LELE的RPG难题
- hdu 2045 不容易系列之(3)—— LELE的RPG难题
- Hdu 2045 - 不容易系列之(3)—— LELE的RPG难题
- HDU 2045 不容易系列之(3)—— LELE的RPG难题 找规律
- hdu 2045 不容易系列之(3)—— LELE的RPG难题
- hdu 2045 不容易系列之(3)—— LELE的RPG难题
- hdu 2045 - 不容易系列之(3)—— LELE的RPG难题
- HDU-2045不容易系列之(3)—— LELE的RPG难题
- HDU 2045 不容易系列之(3)—— LELE的RPG难题
- hdu 2045 不容易系列之(3)—— LELE的RPG难题
- HDU 2045 不容易系列之(3)—— LELE的RPG难题 (组合数学)
- HDU 2045 不容易系列之(3)—— LELE的RPG难题
- HDU 2045 - 不容易系列之(3)—— LELE的RPG难题
- [hdu-2045] 不容易系列之(3)—— LELE的RPG难题
- uva10192 - Vacation(dp,lcs)
- 简单的Eclipse连接MySQL数据库(二)
- android的重要java知识点回顾3
- hdu 1019
- 数组
- HDU-2045不容易系列之(3)—— LELE的RPG难题
- apt-get 使用详解
- Daily-C-Study(12):C语static关键字
- MySQL usage & administration 这本书的数据库
- OPENGL学习笔记之share 纹理,变换 源代码
- 悼念512汶川大地震遇难同胞——重建希望小学
- css中li前面点的样式或换成图片
- 第十四周—1.1动物怎么叫
- hdoj 4572 Bottles Arrangement