hiho week 179 register

Ended

Participants:219

Verdict:Accepted
Score:100 / 100
Submitted:2017-12-06 20:06:17

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 <bits/stdc++.h>
using namespace std;
#define clr(a, x) memset(a, x, sizeof(a))
#define mp(x, y) make_pair(x, y)
#define pb(x) push_back(x)
#define X first
#define Y second
#define fastin                    \
    ios_base::sync_with_stdio(0); \
    cin.tie(0);
typedef long long ll;
typedef long double ld;
typedef pair<int, int> PII;
typedef vector<int> VI;
const int INF = 0x3f3f3f3f;
const int mod = 1e9 + 7;
const double eps = 1e-6;
struct Edge
{
    int from, to, cost;
    Edge(int u, int v, int w) : from(u), to(v), cost(w) {}
};
const int N = 10005;
vector<Edge> edges;
vector<int> G[N];
inline void AddEdge(int u, int v, int w)
{
    edges.pb(Edge(u, v, w));
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX