hiho week 64 register

Ended

Participants:874

Verdict:Accepted
Score:100 / 100
Submitted:2015-09-20 21:43: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 <iomanip>
#include <sstream>
#include <string>
#include <cstring>
#include <vector>
#include <list>
#include <set>
#include <stack>
#include <queue>
#include <map>
#include <utility>
#include <algorithm>
using namespace std;
const int MAXN = 1005;
struct row {
    int childId;          // 
    int expandLength;     //  
    row():childId(-1),expandLength(0) {};
    row(int _id):childId(_id),expandLength(0) {};
};
struct section {
    vector< row > rows;   // row
    int selfLength;       //  s1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX