Box Stacking Problem
- 问题来源:
堆箱子问题
#include <stdio.h>
#include <algorithm>
#include <vector>
using namespace std;
int MAX[101];
int RESULT[101];
vector<vector<int> >res;
bool cmp(vector<int> A, vector<int> B) //用于箱子的底面积排序
{
return A[0]*A[1]>B[0]*B[1];
}
struct Box{ //存放箱子的各种形态,存在post中
int