hiho week 117 register

Ended

Participants:659

Verdict:Accepted
Score:100 / 100
Submitted:2016-09-25 10:50:56

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 <queue>
using namespace std;
const int maxn = 233;
const int INF = 0x3f3f3f3f;
struct Edge
{
    int v,cap,next;
} eg[maxn*maxn];
int ned[maxn];
int n,m;
int head[maxn];
int tp,st,en;
void Add(int u,int v,int cap)
{
    eg[tp].v = v;
    eg[tp].cap = cap;
    eg[tp].next = head[u];
    head[u] = tp++;
}
int dis[maxn];
int pre[maxn];
int gap[maxn];
int cur[maxn];
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX