hiho Week 15 register

Ended

Participants:1653

Verdict:Accepted
Score:100 / 100
Submitted:2014-10-17 23:22:44

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 <math.h>
#include <stdio.h>
#include <algorithm>
#include <string.h>
#include <stack>
#include <queue>
#include <vector>
#include <map>
#define Zero(a) memset(a, 0, sizeof(a))
#define Neg(a)  memset(a, -1, sizeof(a))
#define All(a) a.begin(), a.end()
#define PB push_back
using namespace std;
const int maxn = 100010;
int n, m, cnt, id;
int head[maxn];
int dep[maxn * 2], E[maxn * 2], R[maxn];
int f[maxn * 2][20], d[35];
map<string, int >Hash;
string sg[maxn];
struct node{
    int to, next;
}edges[maxn];
void init() {
    cnt = 0;
    id = 1;
    Neg(head);
    Zero(R);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX