2016年10月4日
摘要: 矩乘快速幂入门 题目已经把题解讲得很清楚了 1 #include<cstdio> 2 #include<cstring> 3 #include<cassert> 4 #include<algorithm> 5 using namespace std; 6 #define p 10000 7 #def 阅读全文
posted @ 2016-10-04 20:53 Absolutezero 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 树上单点修改,子树查询 可以在这棵树的dfs序上建线段树维护 PS:modify、query的时候传入x的dfs序即可 1 #include<cstdio> 2 #include<cstring> 3 using namespace std; 4 const int N=100010,M=40001 阅读全文
posted @ 2016-10-04 16:17 Absolutezero 阅读(154) 评论(0) 推荐(0) 编辑