MSBOP 2015 Round3 register

Ended

Participants:978

Verdict:AC | TLE
Submitted:2015-05-09 15:15:33

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
/*************************************************************************
    > File Name: pa.cpp
    > Author: znl1087
    > Mail: loveCJNforever@gmail.com 
    > Created Time:   5/ 9 14:15:17 2015
 ************************************************************************/
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <algorithm>
#include <string>
#include <cstdlib>
#include <vector>
#include <set>
#include <map>
using namespace std;
const int MAXN = 110000;
struct Edge{
    int u,v,next;
}e[MAXN];
int cnt,head[MAXN];
long long w[MAXN];
void addedge(int u,int v){
    e[cnt].u = u,e[cnt].v = v,e[cnt].next = head[u];
    head[u] = cnt++;
    e[cnt].u = v,e[cnt].v = u,e[cnt].next = head[v];
    head[v] = cnt++;
}
long long dfs(int pos,int p){
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX