赞
踩
- #include <bits/stdc++.h>
- using namespace std;
- typedef long double db;
- const int N=1e6+5;
- const db pi=acos(-1.0);
- db n,x,y;
- struct point{
- db x,y;
- point(db vx,db vy)
- {
- x=vx,y=vy;
- }
- point()
- {}
- }p[N];
- point operator-(const point&v1,const point&v2)
- {
- return point(v2.x-v1.x,v2.y-v1.y);
- }
- db product(point a,point b)
- {
- return a.x*b.y-a.y*b.x;
- }
- db dot(point a,point b)
- {
- return a.x*b.x+a.y*b.y;
- }
- db dis(point a,point b)
- {
- return sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y));
- }
- int main()
- {
- ios::sync_with_stdio(false);
- cin.tie(0);
- cin>>n;
- for(int i=0;i<=n;i++)
- cin>>p[i].x>>p[i].y;
- db mn
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。