单调栈
不懂规矩
过好自己,不悔~~
展开
-
POJ 2796 Feel Good
#include #include #include using namespace std; #define N 100010 #define ll __int64 struct S{ int startPos; ll h; S(int start=0,ll hh=0){ startPos=start; h=hh; } }stac原创 2014-07-21 13:02:40 · 383 阅读 · 0 评论 -
POJ 2082 Terrible Sets
#include #include #include using namespace std; #define N 50010 struct S{ int startPos; int w,h; S(int start=0,int ww=0,int hh=0){ startPos=start; w=ww; h=hh; }原创 2014-07-21 11:13:31 · 326 阅读 · 0 评论