hiho week 52 register

Ended

Participants:214

Verdict:Accepted
Score:100 / 100
Submitted:2015-06-29 15:50:43

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 <cmath>
#include <stdio.h>
#include <stdlib.h>
#include <map>
#include <utility>
#include <vector>
#include <algorithm>
#include <assert.h>
#include <algorithm>
#include <queue>
#include <stack>
#include <string.h>
#include <string>
using namespace std;
const int N = 20000;
const int M = 100000;
int head[N + 1];
typedef struct eedge{
    int u, v, next;
}Edge;
Edge edge[2 * M];
int m, n, e;
bool visit[N + 1];
int low[N + 1], dfn[N + 1],parent[N+1];
bool mark[N+1];
int nodeNum;
void addedge(int u, int v){
    edge[e].u = u;
    edge[e].v = v;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX