hiho week 54 register

Ended

Participants:493

Verdict:Accepted
Score:100 / 100
Submitted:2015-07-13 20:11:36

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 <algorithm>
#include <queue>
#include <stack>
using namespace std;
const int N=21000;
const int M=101000;
const int inf=1<<29;
int pnt[M],nxt[M],head[N],e;
int ppnt[M],nnxt[M],hhead[N],ee;
int low[N],dfn[N],belong[N],num[N],js,ss;
bool pan[N];
int n,m,cc[N],bj[N];
stack<int> q;
void add(int u,int v)
{
    pnt[e]=v;nxt[e]=head[u];head[u]=e++;
}
void aadd(int u,int v)
{
    ppnt[ee]=v;nnxt[ee]=hhead[u];hhead[u]=ee++;
}
void init()
{
    js=ss=e=ee=0;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX