![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
技巧_尺取法
TouchDreamer
这个作者很懒,什么都没留下…
展开
-
尺取法(POJ 3061,3320,3276)
尺取法 交替推进2个端点直接得到答案的方法称为尺取法。POJ 3061#include <map>#include <set>#include <vector>#include <cmath>#include <cstdio>#include <cstring>#include <iostream>#include <algorithm>using namespace std;原创 2016-09-13 09:30:37 · 225 阅读 · 0 评论 -
codeforce 251 A(二分或者尺取法或者单调队列)
二分#include <cstdio>#include <cstring>#include <iostream>#include <algorithm>using namespace std;#define LL long longconst int maxn = 1e5+100;LL a[maxn];int main(){ LL n, d; while(scanf("%原创 2016-10-19 19:49:48 · 327 阅读 · 0 评论