
矩阵快速幂
文章平均质量分 72
我家静静最可爱
每天进步一点~~~
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
HDU 3292 No more tricks, Mr Nanguo
No more tricks, Mr Nanguo Problem Description Now Sailormoon girls want to tell you a ancient idiom story named “be there just to make up the number”. The story can be described by the following wor...原创 2018-08-24 17:33:08 · 202 阅读 · 0 评论 -
牛客练习赛25 C-再编号
牛客练习赛25 C-再编号 链接:https://www.nowcoder.com/acm/contest/158/C 来源:牛客网 题目描述 n 个人,每个人有一个编号 ai 。 定义对 a 的再编号为 a’ ,满足 。 现在有 m 次询问,每次给定 x,t ,表示询问经过 t 次再编号后第 x 个人的编号。 由于答案可能很大,所以对 109+7 取模。 输入描述: 第一...原创 2018-08-25 09:51:41 · 324 阅读 · 0 评论