HDU-不容易系列之(3)—— LELE的RPG难题
生活随笔
收集整理的這篇文章主要介紹了
HDU-不容易系列之(3)—— LELE的RPG难题
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
鏈接http://acm.hdu.edu.cn/showproblem.php?pid=2045
#include<stdio.h> int main() {int n,i;__int64 a[51];a[1]=3;a[2]=6;a[3]=6;while(scanf("%d",&n)!=EOF){for(i=4;i<=n;i++)a[i]=2*a[i-2]+a[i-1];printf("%I64d\n",a[n]);}return 0; }?
轉載于:https://www.cnblogs.com/gj-Acit/archive/2012/12/27/2835949.html
總結
以上是生活随笔為你收集整理的HDU-不容易系列之(3)—— LELE的RPG难题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 系出名门Android(2) - 布局(
- 下一篇: 2012年最后一天,终于盼到公司发报卡了