hiho week 109 register

Ended

Participants:438

Verdict:Accepted
Score:100 / 100
Submitted:2016-07-30 21:14:35

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 <vector>
#include <algorithm>
using namespace std;
struct NODE
{
    int p;
    int q;
    int pt;
    int qt;
    vector<int> next;   
};
int n;
NODE node[10001];
bool compare(int x, int y)
{
    return node[x].qt > node[y].qt;
}
void dfs(int parent, int now)
{
    int wallet = 200000000;
    int min_wallet = 200000000;
    
    vector<int> temp;
    for(int i = 0; i < node[now].next.size(); i++)
    {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX