hiho week 154 register

Ended

Participants:224

Verdict:Accepted
Score:100 / 100
Submitted:2017-06-11 00:15:35

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 <cstring>  
#include <cmath>  
#include <iostream>  
#include <queue>
#include <set>
#include <string>
#include <stack>
#include <algorithm>
#include <map>
#include <bitset>
using namespace std;  
typedef long long ll;
const int N = 1008;
const int M = 100000000;
const int INF = 0x3fffffff;
const int mod = 1e9+7;
const double Pi = acos(-1.0);
const double sm = 1e-9;
struct circle{
    int x,y,r;
}cir[N];
int parent[N];
bool cal( circle a , circle b )
{
    ll x = (ll)(a.x-b.x)*(a.x-b.x);
    ll y = (ll)(a.y-b.y)*(a.y-b.y);
    ll r = (ll)(a.r+b.r)*(a.r+b.r);
    return (x+y)<=r;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX