点分治
给我一瓶AC钙
是一颗萌菜没错了
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
(POJ) 1741 Tree
点分治 解题思路:点分治模板题,看懂上面那篇博客就能切啦。 #include<cstdio> #include<iostream> #include<algorithm> #include<string> #include<cstring> #include<queue> #include<stack> #i...原创 2019-04-29 19:29:09 · 219 阅读 · 0 评论 -
(2019沈阳网络赛) D. Fish eating fruit (点分治)
传送门 解:就是求图中所有路径%3为0,1,2的路径和。 #include<bits/stdc++.h> #define il inline #define pb push_back #define ms(_data,v) memset(_data,v,sizeof(_data)) #define SZ(a) int((a).size()) using namespace std...原创 2019-09-15 09:58:03 · 476 阅读 · 0 评论
分享