#include #include #include #include #include #include #include using namespace std; typedef double coord; class point { public: coord x, y; point() { x = y = 0; } point(coord x1, coord y1) { x = x1; y = y1; } point operator +=(point a) { x += a.x; y += a.y; return *this; } point operator -=(point a) { x -= a.x; y -= a.y; return *this; } }; point operator +(point a, point b) { return a += b; } point operator -(point a, point b) { return a -= b; } coord operator *(point a, point b) { return a.x*b.x + a.y*b.y; } coord cross(point a, point b) { return a.x*b.y - a.y*b.x; } double length(point a) { return sqrt((double)(a*a)); } int main() { int n; cin >> n; cout << setprecision(15); double triangle = sqrt(0.75)/2; if ( n==2 ) { cout << triangle << endl; return 0; } vector poly(n); for(int i=0; i> poly[i].x >> poly[i].y; double area = 0, scale = 0; for(int i=0; i fac = %.3lf\narea = %.3lf\n", triangle, scale, fac, area); cout << res << endl; return 0; }