-
Notifications
You must be signed in to change notification settings - Fork 1
/
Chef_and_Polygons.cpp
82 lines (66 loc) · 1.15 KB
/
Chef_and_Polygons.cpp
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/*
Problem Name = Chef and Polygons
Problem Link = http://www.codechef.com/JUNE15/problems/CHPLGNS
User = soumyadeep9
*/
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <limits>
#include <bitset>
#include <time.h>
#include <cmath>
#include <vector>
#include <string>
#include <set>
using namespace std;
#define MOD 1000000007LL
#define LL long long
#define LD long double
#define MAX(a,b) ((a)>(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))
#define ABS(x) ((x)<0?-(x):(x))
#define REP(i,n) for(int i=0;i<(n);i++)
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define FORR(i,n) for(int i=(n);i>=0;i--)
const double PI=3.14159265358979323846264338327950288419716939937510582097494459230;
#define SIZE 100001
class Point2D
{
long long int x,y;
public:
Point2D(int a,int b)
{
x = a;
y = b;
}
Point2D& operator=(const Point2D& p)
{
x = p.x;
y = p.y;
}
};
struct Polygon
{
vector<Point2D> points;
};
int main()
{
int n,t,m,x,y;
Point2D pt;
scanf("%d",&t);
REP(i,t)
{
scanf("%d",&n);
vector<Polygon>polygonSet(n);
REP(j,n)
{
scanf("%d",&m);
REP(k,m)
{
scanf("%d %d",&x,&y);
}
}
}
return 0;
}