andre_joy

导航

2012年9月16日

hdu 4291

摘要: 地址:http://acm.hdu.edu.cn/showproblem.php?pid=4291题意:g(n) = 3*g(n-1)+g(n-2),求g(g(g(n)))。mark:本地打表找循环节。。。囧,第一次做这种题。找到后直接快速幂。代码:#include <cstdio>#include <cstring>#include <cstdlib>#include <cmath>#include <iostream>#include <algorithm>#include <map>#define LL 阅读全文

posted @ 2012-09-16 22:03 andre_joy 阅读(263) 评论(0) 推荐(0) 编辑