上一页 1 ··· 9 10 11 12 13 14 15 下一页
摘要: 转自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) 编辑
摘要: 直接模板#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) 编辑
摘要: #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) 编辑
摘要: 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) 编辑
摘要: #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) 编辑
摘要: 根据spfa改,不知道为啥TE了, ...因为忘记每次循环将num=0 ,T_T 要注意是双向边,所以要加两次addEdge。 dijkstra 寻找最短路 prim最小生成树 虽然两者似乎看起来差不多(都是利用了贪心思想,找到最近的一点),但是更新的东西是完全不一样的 阅读全文
posted @ 2018-03-10 13:17 LandingGuys 阅读(99) 评论(0) 推荐(0) 编辑
摘要: #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) 编辑
摘要: #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 下一页