摘要: Count The Blocks " Count The Blocks 题目链接 " 思路 首先打表出来,发现了一个规律 $num[1] = 10, num[2] = 180$,这里的数组标记是反的 发现假定前 $n 1$个num已经求得,我们可以得到 $num[n] = n 10^{n} \sum 阅读全文
posted @ 2020-05-03 18:57 lifehappiness 阅读(94) 评论(0) 推荐(0) 编辑
摘要: Two Arrays " Two Arrays 题目链接 " 思路 我们可以把两个序列链接起来,有 $a_1 using namespace std; typedef long long ll; const int mod = 1e9 + 7; int dp[30][1010], n, m; int 阅读全文
posted @ 2020-05-03 18:21 lifehappiness 阅读(63) 评论(0) 推荐(0) 编辑