
几何
xxx_bug
这个作者很懒,什么都没留下…
展开
-
hdu 1086 You can Solve a Geometry Problem too
判断线段是否相交的模板题: #include using namespace std; struct piont { double x,y; }; struct segm { piont p1,p2; }s[110]; double dir(piont pi,piont pj,piont pk) { return (pi.x - pk.x)*(pj.y - p原创 2012-03-21 22:18:22 · 435 阅读 · 0 评论 -
HDU 2036 改革春风吹满地
求面积~ 不用考虑凹凸多边。 #include int main() { int n; int x1,y1,x2,y2,x3,y3,i; double ans; while(scanf("%d",&n)!=EOF&&n) { //cin>>x1>>y1>>x2>>y2; scanf("%d%d%d%d",&x1,&y1原创 2012-03-22 14:11:56 · 1178 阅读 · 0 评论