《算法競賽入門經典》 習題3-10 盒子

《算法競賽入門經典》 習題3-10 盒子 給定6個矩形的長和寬wi和hi(1<=wi,hi<=1000),判斷它們可否構成長方體的6個面。web #include<stdio.h> #include<algorithm> //調用swap,sort函數 using namespace std; typedef struct //定義關於寬高的結構體 { int w,h; }box; bo
相關文章
相關標籤/搜索