#include #include using namespace std; struct node { int h,w; }; inline bool operator<(const node &a,const node &b) { return a.w=ap[i].w&&h>=ap[i].h) { s-=ap[i].w; res++; } printf("%d\n",res); return 0; }