hiho Week 15 register

Ended

Participants:1653

Verdict:Runtime Error
Score:70 / 100
Submitted:2014-10-14 16:07:23

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 <cstdio>
#include <string>
#include <map>
#include <vector>
using namespace std;
#define N 20000
vector<int> childVector[N];
int anc[N];
map<int, string> intToStr;
map<string, int> strToInt;
int mapCnt = 0;
int n;
vector<int> questionVector[N];
//vector<vector<int>> questionMap;
//int questionMapLint[N];
int questionMap[N][N];
int question[N][2];
int m;
int solved;
int ufs[N];
bool visited[N];
inline void makeSet(int val) {ufs[val] = val;}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX