
基础数据结构
zz_ylolita
这个作者很懒,什么都没留下…
展开
-
单调栈
傻逼zzy... poj2796 注意一下最后答案可能是0,所以res的初始值要赋为-1 #include <iostream> #include <cstdio> using namespace std; int n,top; long long res; int ans; long long s[100005], a[100005]; int L[100005]...原创 2018-08-24 19:52:28 · 191 阅读 · 0 评论 -
bzoj2462[二维hash/矩阵hash]
//二维hash //相当于每个位置有两个权,行一个,列一个,然后推的方法和一维一样 //bzoj2462 #include <iostream> #include <cstdio> #include <cstring> #include <cstdlib> #include <algorithm> using namespace std...原创 2019-07-25 22:24:57 · 286 阅读 · 0 评论