随笔分类 -  二分

摘要:该题用到二分的方法:#include<iostream>#include<algorithm>#include<cstdio>using namespace std;class Node{public: int h,w; };bool cmp( Node a ,Node b ){ if( a.w == b.w ) return a.h > b.h; return a.w < b.w; }Node doll[20024];int Doll( int n ){ int sum=0; int hash[20024]={0}; for( int i = 阅读全文
posted @ 2012-02-28 20:50 wutaoKeen 阅读(149) 评论(0) 推荐(0)