- 博客(3)
- 收藏
- 关注
原创 poj 2482 Stars in Your Window 线段树+离散化
//poj 2482 //sep9 #include #include using namespace std; typedef __int64 INT; typedef pair,pair > SEG;//(x,cs),(y1,y2) const int MAXN=10000; INT n,W,H; INT xs[MAXN+10],ys[MAXN+10]; INT cs[MAXN+10];
2016-01-11 12:30:11 514
原创 poj 3258 River Hopscotch 二分搜索极值
//poj 3258 //sep9 #include #include using namespace std; int L,N,M; int a[50012],b[50012]; bool judge(int mid) { int i=0,sum=0; while(i<=N){ if(b[i]>=mid){ ++i; continue; } int tmp=b[
2016-01-06 12:53:47 469
原创 poj 1252 Euro Efficiency 正负完全背包
//poj 1252 //sep9 #include using namespace std; const int MAXV=1200; int val[8]; int dp[MAXV+10]; int main() { int cases; scanf("%d",&cases); while(cases--){ for(int i=0;i<6;++i) scanf("%d",
2016-01-05 16:25:12 517
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人