链接:click here~~
题意:
递推数
Problem Description
已知A(0) = 0 , A(1) = 1 , A(n) = 3 * A(n-1) + A(n-2) (n ≥ 2) 求 A(A(A(A(N)))) Mod (1e9 + 7)
Input
第一行一个整数 T (T ≤ 10000) 代表数据组数
每组数据占一行,一个整数 n (1 ≤ n...
分类:
其他好文 时间:
2015-03-30 13:21:23
阅读次数:
93
链接: click here~~
题意:
According to a research, VIM users tend to have shorter fingers, compared with Emacs users.
Hence they prefer problems short, too. Here is a short one:
Given n (1 18), Y...
分类:
其他好文 时间:
2015-03-30 13:20:40
阅读次数:
152