hihoCoder Challenge 14 register

Ended

Participants:709

Verdict:Accepted
Submitted:2015-08-30 19:25:32

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
/*---------------------
.CF Default code
.2014/7/20
.Zpw987
---------------------*/
#include <iostream>
#include <string>
using namespace std;
bool btest=0;
const int maxn=100005;
const int INF=(int)1e9;
int n,m;
int c[maxn];
int tot=0;
struct Edge
{
    int y;
    int next;
}e[200005];
void add_edge(int x,int y)
{
    tot++;
    e[tot].y=y;e[tot].next=c[x];
    c[x]=tot;
}
int ans=0;
int dfs(int v,int dep)
{
    int ma1=0,ma2=0;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX