hiho week 59 register

Ended

Participants:345

Verdict:Accepted
Score:100 / 100
Submitted:2015-08-16 16:28:47

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 <stdio.h>
#include <vector>
#include <queue>
#include <algorithm>
#include <numeric>
#include <cmath>
#include <ctime>
#include <string.h>
#include <complex>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <list>
using namespace std;
struct Proc {
    string name;
    int time;
    bool flag;
};
struct Node {
    string name;
    int time;
    vector<Node*> sons;
};
char buf[100000];
int ParseTime(const char* buf) {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX