hiho week 64 register

Ended

Participants:874

Verdict:Wrong Answer
Score:0 / 100
Submitted:2015-09-20 17:46:12

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>
#define MAXN 1000
using namespace std;
class row
{
    public:
    int childId;
    int expandLength;
    row():childId(-1),expandLength(0){};
    row(int _id):childId(_id),expandLength(0){};
};
class section
{
    public:
    vector<row> rows;
    int selfLength;
    int expandLength;
    int delta;
    section():selfLength(0),expandLength(0),delta(0){};
};
class panel
{
    public:
    vector<section> sections;
    vector<int> rowIds;
};
panel panels[MAXN];
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX