摘要:
枚举所有线段交点,依次判断是否与所有线段都有交点 #include <iostream> #include <cstring> #include <algorithm> #include <cmath> #define x first #define y second using namespace 阅读全文
posted @ 2021-11-15 23:00
magicat
阅读(42)
评论(0)
推荐(0)
摘要:
二分求答案,判断点是不是在边的左边 //POJ2318//AcWing 2983. 玩具 //acwing2983 #include<iostream> #include<cmath> #include<math.h> #include<algorithm> #include<cstring> us 阅读全文
posted @ 2021-11-15 22:57
magicat
阅读(24)
评论(0)
推荐(0)
摘要:
这是一道入门计算几何题,偏数学,和算法关系不大 我逛了一圈题解发现都是用的数学求法,这里我就用计算几何来水我第一篇洛谷题解步骤:1.求三等分点2.求交点3.叉积求面积 梅涅劳斯定理也可以做,详情见洛谷题解 #include<iostream> #include<algorithm> #include 阅读全文
posted @ 2021-11-15 22:53
magicat
阅读(32)
评论(0)
推荐(0)
浙公网安备 33010602011771号