![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
矩阵快速幂
文章平均质量分 86
算法之旅
订阅笔试机试专栏,共同进步!
展开
-
CodeForces - 185A Plant
DescriptionDwarfs have planted a very interesting plant, which is a triangle directed "upwards". This plant has an amusing feature. After one year a triangle plant directed "upwards" divides into原创 2016-03-31 23:52:08 · 6240 阅读 · 0 评论 -
51nod-1537分解
51nod矩阵快速幂原创 2016-09-01 14:04:31 · 7924 阅读 · 0 评论 -
POJ-3735 Training little cats
POJ-3735 Training little catsg i — 给第 i 只猫一颗花生 e i — 吃掉第 i 只猫的所有花生 s i j — 交换第 i 只猫和第 j 只猫的花生共有n只猫,k次操作,重复这k个操作m次对于(n+1)*1的矩阵 0 //第一只猫的初始值 0 //2 0 //3 … 0 //n 1 //增量我们需要动态构造一个N*N的矩阵(N=n+1) 以原创 2017-03-22 01:30:53 · 8982 阅读 · 0 评论