摘要:
这题建图比较清晰,就是把能走到的权值设为1 #include<iostream> #include<sstream> #include<cstring> #include<queue> using namespace std; const int N=510; int g[N][N]; int d[ 阅读全文
摘要:
这里我选择了一种在线的树状数组的写法,有三个log,比较好写但是跑的比较慢,吸氧才能过 其实和一维的没有区别,都是整体二分值域的思想 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=4e5+ 阅读全文
摘要:
动态修改的整体二分模板,整体二分天然支持修改 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=3e5+10; struct node{ int op,x,y,k,id; }q[N],lq[N 阅读全文