MSBOP 2015 Round3 register

Ended

Participants:978

Verdict:AC | TLE
Submitted:2015-05-09 16:04:24

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 <ctime>
#include <cmath>
#include <iostream>
#include <algorithm>
using namespace std;
int read(){
     char ch;
     for (ch = getchar(); ch < '0' || ch > '9'; ch = getchar());
     int cnt = 0;
     for (; ch >= '0' && ch <= '9'; ch = getchar()) cnt = cnt * 10 + ch - '0';
     return cnt;
}
struct node{
     int x, y, position;
     void Swap(node &A){
          swap(x, A.x);
          swap(y, A.y);
          swap(position, A.position);
     }
     node operator - (node &A){
          node res;
          res.x = x - A.x; res.y = y - A.y;
          res.position = position;
          return res;
     }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX