hiho week 48 register

Ended

Participants:456

Verdict:Accepted
Score:100 / 100
Submitted:2015-06-02 13:52:19

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 <queue>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
struct side{
    int to;
    int next;
};
struct node{
    int hd;
    int sum;
};
int n,m;
queue<int>que;
int ind[100005];
node head[100005];
side mapn[500005];
int Init()
{
    for(int i=1; i<=n; i++){
        ind[i]=0;
        head[i].hd=-1;
        head[i].sum=0;
    }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX