会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
净
Never ever give up
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
9
10
11
12
13
14
15
下一页
2018年3月12日
poj3020 Antenna Placement 二分图最大匹配,最小覆盖点
摘要: 转自http://blog.csdn.net/qq_33362864/article/details/52101883#include #include #include #include #include #include #include ...
阅读全文
posted @ 2018-03-12 19:41 LandingGuys
阅读(132)
评论(0)
推荐(0)
编辑
2018年3月11日
hdu1083Courses 二分匹配
摘要: 直接模板#include #include #include #include #include #include #include #include #include #define N 23541using namespace std;int t[305][305...
阅读全文
posted @ 2018-03-11 21:08 LandingGuys
阅读(86)
评论(0)
推荐(0)
编辑
已知三个点坐标求 三角形面积 || 求任意多边形面积公式||判断点在直线的左侧还是右侧
摘要: 已知三个点坐标求 三角形面积 看http://blog.csdn.net/hemmingway/article/details/7814494 如何判断一个点 A3 是在直线 A1A2 的左边还是右边呢?(坐标:A1(x1,y1),A2(x2,y2),A3(x3,y3)) 当上式结果为正时,A3在直
阅读全文
posted @ 2018-03-11 19:59 LandingGuys
阅读(584)
评论(0)
推荐(0)
编辑
已知三个点坐标求 三角形面积 || 求任意多边形面积公式||判断点在直线的左侧还是右侧
摘要: ------------------------------------------------------------ 已知三个点坐标求 三角形面积 由A-->B-->C-->A 按逆时针方向转。(行列式书写要求) 设三角形的面积为S 则S=(1/2)*(下...
阅读全文
posted @ 2018-03-11 19:59 LandingGuys
阅读(184)
评论(0)
推荐(0)
编辑
hdu2648Shopping map的运用
摘要: #include #include #include #include #include #define N 23541using namespace std;int main(){ int num,day; while(cin>>num) { ...
阅读全文
posted @ 2018-03-11 19:03 LandingGuys
阅读(396)
评论(0)
推荐(0)
编辑
hdu 3833 YY's new problem hash
摘要: Problem DescriptionGiven a permutation P of 1 to N (表明出现的数字从1到N,只是顺序打乱), YY wants to know whether there exists such three elements P[...
阅读全文
posted @ 2018-03-11 17:05 LandingGuys
阅读(146)
评论(0)
推荐(0)
编辑
2018年3月10日
hdu1102 prim 最小生成树
摘要: #include #include #include #include #include #define MAX 15000#define INF 9999999using namespace std;int n,sum=0;bool isBuild[150][150...
阅读全文
posted @ 2018-03-10 14:10 LandingGuys
阅读(150)
评论(0)
推荐(0)
编辑
Dijkstra 最短路
摘要: 根据spfa改,不知道为啥TE了, ...因为忘记每次循环将num=0 ,T_T 要注意是双向边,所以要加两次addEdge。 dijkstra 寻找最短路 prim最小生成树 虽然两者似乎看起来差不多(都是利用了贪心思想,找到最近的一点),但是更新的东西是完全不一样的
阅读全文
posted @ 2018-03-10 13:17 LandingGuys
阅读(99)
评论(0)
推荐(0)
编辑
Dijkstra 最短路
摘要: #include #define INF 9999999using namespace std;int main(){ int e[51][51],book[50],dis[50],s,t,d,n,m;//n个城市,m条路 cin>>n>>m; ...
阅读全文
posted @ 2018-03-10 13:17 LandingGuys
阅读(39)
评论(0)
推荐(0)
编辑
Floyd
摘要: #include #define INF 9999999using namespace std;int main(){ int e[51][51],s,t,d,n,m;//n个城市,m条路 cin>>n>>m; for(int i=1;i>s>>t>...
阅读全文
posted @ 2018-03-10 13:09 LandingGuys
阅读(88)
评论(0)
推荐(0)
编辑
上一页
1
···
9
10
11
12
13
14
15
下一页
公告