随笔分类 -  计算几何

摘要:题意:给出空间中四个点的坐标 判断能否组成正方形思路:这题需要注意的是 空间而不是平面 就算是四边相等 对角线相等也不一定就是正方形 还需要通过向量判断对边是否平行#include#include#include#includeusing namespace std;#define ll... 阅读全文
posted @ 2015-04-19 00:02 sola94 阅读(143) 评论(0) 推荐(0)
摘要:http://acm.fzu.edu.cn/contest/problem.php?cid=134&sortid=9#include#include#include#include#includeusing namespace std;struct Node{ double x,y;};Node ... 阅读全文
posted @ 2015-03-18 12:37 sola94 阅读(128) 评论(0) 推荐(0)
摘要:#include#include#include#include#includeusing namespace std;int main(){ double r,x,y,x1,y1; while(scanf("%lf%lf%lf%lf%lf",&r,&x,&y,&x1,&y1)!=EOF... 阅读全文
posted @ 2015-01-24 16:02 sola94 阅读(160) 评论(0) 推荐(0)