Sweety

Practice makes perfect

导航

2014年9月21日

摘要: POJ 1001 http://poj.org/problem?id=1001 //注意存储方式是从后往前存储的 也就是逆序存储的 #include using namespace std; char str[10]; int n, dot; int res[200], a[200]... 阅读全文

posted @ 2014-09-21 17:14 蓝空 阅读(281) 评论(0) 推荐(0) 编辑

摘要: 给定两个点: typedef struct { double x, y; } Point; Point A1,A2,B1,B2; 首先引入两个实验: a.快速排斥实验 设以线段A1A2和线段B1B2为对角线的矩形为M,N; 若M,N 不相交,则两个线段显然不相交; ... 阅读全文

posted @ 2014-09-21 13:42 蓝空 阅读(215) 评论(0) 推荐(0) 编辑