MSBOP 2015 Round3 register

Ended

Participants:978

Verdict:AC | TLE
Submitted:2015-05-09 16:56:10

Lang:G++

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <cmath>
using namespace std;
#define N 110
#define INF 2000000000
#define EPS 1e-8
inline int zero(double x) {
    if (x < -EPS) return -1;
    else if (fabs(x) < EPS) return 0;
    else return 1;
}
struct point {
    double x, y;
    point() {}
    point(double x,double y): x(x), y(y) {}
    point operator - (const point &p) const {
        return point(x - p.x, y - p.y);
    }
    
    point operator * (double val) const {
        return point(x * val, y * val);
    }
    
    point operator + (const point &p) const {
        return point(x + p.x, y + p.y);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX