摘要:
每个点拆成入点和出点。 发现每个点、每条边都只能经过一次,所以所有边的容量都是 \(1\)。 #include<bits/stdc++.h> #define ll long long using namespace std; const int N=405,M=1e5+5; int n,m,s,t, 阅读全文
摘要:
发现实际上就是二维静态区间最大值,可以用整体二分维护。 时间复杂度 \(O((q+n^2)\log \max(a_{i,j})\log n^2)\)。 #include<bits/stdc++.h> #define ll long long using namespace std; const in 阅读全文
摘要:
T1 [NOIP2017 提高组] 时间复杂度 大模拟…… #include<bits/stdc++.h> #define ll long long using namespace std; int t,n,k,as,nw,tr,ed[105]; int c[26],str[105],b[105]; 阅读全文