hiho week 55 register

Ended

Participants:378

Verdict:Accepted
Score:100 / 100
Submitted:2015-07-20 22:07:53

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 <stdio.h>
#include <string.h>
#include <stdlib.h>
const int bign = 20033;
const int bigm = 100033;
struct edge
{
    int v,next,edgeid;
}ee[2*bigm];
int head[bign];
int dfn[bign];
int low[bign];
int visit[bign];
int vt[bign];
int mystack[bigm];
int func[bigm];
int n,m;
int tgroup = 0;
inline int mymin(const int &a1,const int &b1)
{
    return (a1<b1)?a1:b1;
}
void addEdge(int u,int v)
{
    static int eid = 1;
    ee[eid].v = v;
    ee[eid].next = head[u];
    head[u] = eid++;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX