摘要: struct point{ double x, y; }; struct line{ double A, B, C;//Ax + By + C = 0; }; line PPL(point a, point b){// 两点确定直线的一般式 if(a.x == b.x) return line{1, 阅读全文
posted @ 2020-07-29 16:34 Ketchum 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 唯一难点应该在于怎么转点吧,直接看代码呗。 //#pragma GCC optimize("-Ofast","-funroll-all-loops") //#pragma GCC optimize(2) //freopen("C://std/a.in","r",stdin); //freopen(" 阅读全文
posted @ 2020-07-29 16:32 Ketchum 阅读(155) 评论(0) 推荐(0) 编辑