hiho week 116 register

Ended

Participants:819

Verdict:Accepted
Score:100 / 100
Submitted:2016-09-23 01:20:28

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 <iostream>
#include <cstring>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <cmath>
#include <time.h>
#include <string>
#include <map>
#include <stack>
#include <vector>
#include <set>
#include <queue>
#define inf 0x3f3f3f3f
#define mod 10000
typedef long long ll;
using namespace std;
const int N=505;
const int M=40005;
int s,t,n,m,vs,vt;
int d[N];
int vis[N];
bool flag=false;
struct Dinic {
    int s,t;
    struct Edge {
        int nxt,to,cap,flow;
    } edg[M];
    vector<int>ans;
    int tot=0;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX