Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include<iostream>#include<vector>#include<algorithm>#define MAXN 1000using 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];