![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
template
guogeer
这个作者很懒,什么都没留下…
展开
-
线段树
1、二分数组 //采用了线段树中二分数组结构 //区间[b,e]求和 long long query(int k, int beg,int end, int b, int e){ if(b>end || e<beg) return 0; if(b=end) ret原创 2011-09-12 16:57:52 · 566 阅读 · 0 评论 -
最小生成树
图论 /* 最小生成树算法 Prim算法 */ for(i=1; i<n; i++) { lowcost[i] = dist[0][i]; adjvex[i] = 0; } lowcost[0] = 0; for(i=1; i<n; i++) {原创 2011-08-18 09:57:41 · 493 阅读 · 0 评论 -
两圆求交点
/* 求圆(x1,y1,R)和圆(x2,y2,r)的交点 数组p存放圆心(1~n-1)和交点(n~),数组radius存放半径 count 用于记录交点数(包括圆心的数目) */ for(int i=0; i<n; i++) { // 初始化 double原创 2011-08-28 19:57:16 · 2796 阅读 · 0 评论 -
接下来我将干嘛
1、STL容器 2、将不会做的题自己做出来。。。 3、继续整理模板。。原创 2011-08-28 19:59:53 · 625 阅读 · 0 评论