随笔分类 -  / 数据结构

摘要:这是rmq 半懂不懂(因为已经会线段树了) 但是!它的代码真的好短啊啊啊啊啊! #include <bits/stdc++.h> using namespace std; int dp1[500010][20],dp2[500010][20],w[1000010]; int main(){ int 阅读全文
posted @ 2024-09-05 19:08 yzc_is_SadBee 阅读(6) 评论(0) 推荐(0)
摘要:第一次做扫描线 挺好的 #include<cstdio> #include<cstring> #include<algorithm> using namespace std; struct ppx { int l,r; double left,right; double len; int cover 阅读全文
posted @ 2024-09-03 19:34 yzc_is_SadBee 阅读(26) 评论(0) 推荐(0)