模板
flyzer
这个作者很懒,什么都没留下…
展开
-
矩阵快速幂求斐波那契模板
矩阵快速幂求斐波那契模板: #include<iostream> #include<iomanip> #include<cstdio> #include<algorithm> #include<cmath> #include<cstring> #include<string> #include<queue...原创 2019-05-12 16:55:44 · 254 阅读 · 0 评论 -
莫队算法
推荐两篇写的比较好的博客: https://blog.csdn.net/qq_38891827/article/details/82190013 https://www.cnblogs.com/MashiroSky/p/5914637.html 莫队算法是用来离线解决不修改的区间问题的。 小Z的袜子 AC代码:694ms #include<bits/stdc++.h> #...原创 2019-09-25 16:33:02 · 58 阅读 · 0 评论 -
树链刨分模板题 洛谷P3384
洛谷P3384 树链刨分模板题。 推荐一篇讲的比较好的博客:https://www.cnblogs.com/chinhhh/p/7965433.html 因为这题要求取模,所以线段树部分和树链刨分部分都要取模。 ACcode: 精简版: #include<bits/stdc++.h> const int N=1e5+10; using namespace std; int...原创 2019-10-10 11:28:12 · 129 阅读 · 0 评论