摘要:
Solved:4 Rank:143 A Equivalent Prefixes 题意:求一个最大的r满足在A,B两个数组中1,r里所有的子区间RMQ相等 题解:单调队列秒 #include <bits/stdc++.h> using namespace std; int n; int q[10000 阅读全文
摘要:
https://www.luogu.org/blog/ONE-PIECE/wang-lao-liu-jiang-xie-zhi-dinic EK 292ms #include <bits/stdc++.h> using namespace std; int n, m, s, t, cnt; int 阅读全文
摘要:
#include <bits/stdc++.h> using namespace std; typedef long long ll; int n, m, rt, mod, cnt, tot; int val[100005]; int dep[100005]; int id[100005], ed[ 阅读全文