HDU 6172 Array Challenge (矩阵快速幂+打表)
Problem Description
There’s an array that is generated by following rule.
h0=2,h1=3,h2=6,hn=4hn−1+17hn−2−12hn−3−16
And let us define two arrays bnandan
as below.
bn=3hn+1hn+9hn+1hn−1+9h2n+27hnhn
原创
2018-01-29 10:37:56 ·
660 阅读 ·
0 评论