hdu2047阿牛的EOF牛肉串
来源:互联网 发布:系统之家windows vista 编辑:程序博客网 时间:2024/04/29 16:40
思路:递推一下
#include <iostream>#include<cstdio>#define LL long longusing namespace std;int main(){LL a[40]={0,3,8};int n;for(int i=3;i<=39;i++) a[i]=2*a[i-1]+2*a[i-2];while(scanf("%d",&n)!=EOF){printf("%lld\n",a[n]);}return 0;}
0 0
- hdu2047阿牛的EOF牛肉串
- HDU2047:阿牛的EOF牛肉串
- hdu2047 阿牛的EOF牛肉串
- hdu2047阿牛的EOF牛肉串
- HDU2047 阿牛的EOF牛肉串
- HDU2047 阿牛的EOF牛肉串
- HDU2047-阿牛的EOF牛肉串
- hdu2047 阿牛的EOF牛肉串
- HDU2047阿牛的EOF牛肉串
- hdu2047 阿牛的EOF牛肉串
- hdu2047阿牛的EOF牛肉串
- HDU2047阿牛的EOF牛肉串
- hdu2047阿牛的EOF牛肉串
- HDU2047 阿牛的EOF牛肉串
- HDU2047 阿牛的EOF牛肉串
- HDU2047 阿牛的EOF牛肉串
- hdu2047阿牛的EOF牛肉串
- HDU2047 阿牛的EOF牛肉串
- 从零开始_学_数据结构(二)——树的基本概念
- HDOJ 2028 Lowest Common Multiple Plus
- Spring各种依赖注入注解的区别
- ubantu 设置wifi热点
- activity的几个相关类
- hdu2047阿牛的EOF牛肉串
- 通过使用构造器来配置Bean
- 【边喝caffee边Caffe 】(三) Check failed: registry.count(t ype) == 1 (0 vs. 1) Unknown layer type
- mysql下载于部署
- HAproxy 代理技术原理
- Python初体验之基础篇(1)- 算术和变量
- 冒泡排序
- SQL Server 未删除任何行
- fork,vfork,clone区别