摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4604这个题解有点问题,暂时没时间改,还是参考别人的吧#include #include #include #include #include #include #include #define maxn 100500using namespace std;const int INF = 0x3f3f3f;int a[maxn];int s1[maxn],s2[maxn];int ans;int n;int search_lower_bound(int l,int h,int m){ if(l... 阅读全文
posted @ 2013-07-23 22:07 等待最好的两个人 阅读(478) 评论(6) 推荐(0) 编辑
摘要: 题目链接:http://poj.org/problem?id=3903 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #define maxn 100005 9 using namespace std;10 11 int stack[maxn];12 int a[maxn];13 int n;14 15 int search_lower_bound(int l,int h,int m){16 if(l == h) return h;17 int mid ... 阅读全文
posted @ 2013-07-23 22:02 等待最好的两个人 阅读(178) 评论(0) 推荐(0) 编辑