【题解】poj1116[ACM/ICPC Regional Contest Northeast Europe 2001].Library
题目链接学习了大佬博客难度比较大,需要枚举很多种情况,对思维的全面性要求高#include#include#include#defineINF0x3f3f3f3fusingnamespacestd;intxn,yyn,xt,yt,n;//壁龛的宽度高度、旧书的宽度和高度、货架的数量intmindz=INF,minmb=INF;//最少钉子,最少木板structnode{intx,y,l,x1,x2