摘要: 参考了这个博客 阅读全文
posted @ 2017-12-09 15:19 MSPqwq 阅读(190) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #define eps 1e-8 using namespace std; bool dcmp(double x,double y) { if (fabs(x-y)>eps) return 1; return 0; } struct point { double x,y; point () {... 阅读全文
posted @ 2017-12-09 13:29 MSPqwq 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 题目: 给一个管子,有很多转弯处,问从管口的射线射进去最长能射到多远 题解: 根据黑书,可以证明的是这条光线一定经过了一个上顶点和下顶点 所以我们枚举每对上下顶点就可以了 阅读全文
posted @ 2017-12-09 09:25 MSPqwq 阅读(140) 评论(0) 推荐(0) 编辑