摘要:
水~但是如果不找出公式的话,而用for(角度),这样会TLE。。。。View Code 1 #include<stdio.h> 2 #include<math.h> 3 #include<algorithm> 4 using namespace std; 5 const double pi=3.141592653; 6 int main(){ 7 double x,y,v; 8 while( scanf("%lf%lf%lf",&x,&y,&v)==3,x+y+v ){ 9 double ans=0;10 /*11 阅读全文
posted @ 2013-02-13 17:16
xxx0624
阅读(159)
评论(0)
推荐(0)
摘要:
注意:先处理出起点的整个body,并存储在form中,然后再建个新的图flag,再就是普通的bfs了。。。。。参考:http://blog.csdn.net/ice_crazy/article/details/7594362View Code 1 #include<stdio.h> 2 #include<string.h> 3 #include<stdlib.h> 4 #include<queue> 5 #include<algorithm> 6 using namespace std; 7 const int maxn = 105; 阅读全文
posted @ 2013-02-13 16:23
xxx0624
阅读(299)
评论(0)
推荐(0)
摘要:
题意:给定一个凸多边形和一条直线求这个多边形被切割后的面积对于代码中的“d1=dblcmp(s1=cross( p.node[i],s,e ));//跨立 d2=dblcmp(s2=cross( p.node[i+1],s,e ));//跨立”不是很理解。。。求指教View Code 1 #include<stdio.h> 2 #include<string.h> 3 #include<stdlib.h> 4 #include<math.h> 5 #include<algorithm> 6 using namespace std; 7 阅读全文
posted @ 2013-02-13 16:22
xxx0624
阅读(610)
评论(0)
推荐(0)
摘要:
http://blog.csdn.net/xxx0624赶脚这里有点冷清。。。http://blog.csdn.net/xxx0624 阅读全文
posted @ 2013-02-13 10:36
xxx0624
阅读(139)
评论(0)
推荐(0)