摘要: 直接模板#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) 编辑