
模板
文章平均质量分 76
齐天大鹏
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
poj 3621 二分+spfa判负环
http://poj.org/problem?id=3621原创 2014-11-09 15:36:48 · 527 阅读 · 0 评论 -
hdu 2063 匈牙利算法
http://acm.hdu.edu.cn/showproblem.php?pid=2063匈牙利算法模板原创 2014-10-19 14:22:04 · 433 阅读 · 0 评论 -
hdu 1711 kmp
http://acm.hdu.edu.cn/showproblem.php?pid=1711kmp模板题#include #include #include #include #include #include #include #include #include using namespace std;#define RD(x) scanf("%d",&x)#def原创 2014-10-19 14:51:47 · 379 阅读 · 0 评论 -
hdu 4888 最大流慢板
http://acm.hdu.edu.cn/showproblem.php?pid=4888#include #include #include #include #include using namespace std;const int maxn=500,maxm=maxn*maxn;int next[maxm*2],num[maxm*2],r[maxm*2原创 2014-10-15 19:53:34 · 425 阅读 · 0 评论 -
hdu 5047 大数找规律
http://acm.hdu.edu.cn/showproblem.php?pid=5047找规律信kuangb原创 2014-10-13 22:17:19 · 565 阅读 · 0 评论 -
hdu 4970 trick
http://acm.hdu.edu.cn/showproblem.php?pid=4970原创 2014-10-21 11:23:44 · 424 阅读 · 0 评论 -
hdu 4975 最大流快版
http://acm.hdu.edu.cn/showproblem.php?pid=4975#include #include #include #include #include #include using namespace std;typedef long long LL;const int MAXN = 610;const int MAXV = MAX原创 2014-10-21 11:06:06 · 575 阅读 · 0 评论 -
hdu 1348 凸包模板
http://acm.hdu.edu.cn/showproblem.php?pid=1348凸包模板题#include #include #include #include #include #include #include #include #include using namespace std;#define RD(x) scanf("%d",&x)#defi原创 2014-10-19 13:57:49 · 433 阅读 · 0 评论 -
hdu 5009 离散化
http://acm.hdu.edu.cn/showproblem.php?pid=5009有一段序列,涂连续一段子序列的代价为该子序列出现不同数字个数的平方,求最小代价涂完整个序列。原创 2014-10-15 19:31:26 · 360 阅读 · 0 评论 -
hdu 2544 最短路
http://acm.hdu.edu.cn/showproblem.php?pid=2544#include #include #include #include #includeusing namespace std;#define maxn 10011int n,m,first[maxn],u[maxn],v[maxn],w[maxn],next[maxn];bool i原创 2014-10-19 14:58:40 · 404 阅读 · 0 评论 -
hdu 2222 AC自动机
http://acm.hdu.edu.cn/showproblem.php?pid=2222原创 2014-10-19 16:19:14 · 410 阅读 · 0 评论 -
hdu 4998 矩阵表示旋转
http://acm.hdu.edu.cn/showproblem.php?pid=4998http://blog.youkuaiyun.com/wcyoot/article/details/33310329#include #include #include #include #include #include #include #include #inclu原创 2014-10-17 13:55:18 · 463 阅读 · 0 评论 -
hdu 5039 线段树+dfs序
#include #include #include #include #include #include #include #include #include using namespace std;#define RD(x) scanf("%d",&x)#define RD2(x,y) scanf("%d%d",&x,&y)#define RD3(x,y,z) scan原创 2014-10-17 11:50:57 · 505 阅读 · 0 评论 -
hdu 5098 双队列拓扑排序
hdu 5098 拓扑排序原创 2014-11-03 10:27:23 · 1549 阅读 · 0 评论 -
C++ STL
(1) map map定义形式 map map_name; map的基本操作函数: C++ Maps是一种关联式容器,包含“关键字/值”对 begin() 返回指向map头部的迭代器 clear() 删除所有元素 count() 返回指定元素出现的次数原创 2014-11-03 11:22:45 · 443 阅读 · 0 评论 -
hdu 5095 多项式模拟+有坑
http://acm.hdu.edu.cn/showproblem.php?pid=5095就是把ax^2 + by^2 + cy^2 + dxy + eyz + fzx + gx + hy + iz + j原创 2014-11-02 17:15:37 · 1365 阅读 · 0 评论 -
poj 3463/hdu 1688 求次短路和最短路个数
http://poj.org/problem?id=3463http://acm.hdu.edu.cn/showproblem.php?pid=1688原创 2014-11-01 16:19:55 · 1290 阅读 · 0 评论 -
hdu 5120 圆相交面积+组合数学
http://acm.hdu.edu.cn/showproblem.php?pid=5120圆环的交 = 大圆交-2个大小圆交+小圆交最讨厌这些模板题!干.#include #include #include #include #include #include #include #include #include #include using namespac原创 2014-12-04 21:04:15 · 579 阅读 · 0 评论