版本比较
QOJ4420 Range Reachability Query 题解
正文
增加 2 行删除 2 行
23 行未改动2425262728282930313254 行未改动878889909191929394953 行未改动23 行未改动using namespace std;const int N = 50003, B = 512;int t, n, u, v, dd[N], d[N], m, qy, x[N], y[N], l, r, tot;queue<int> q;bitset<B> ck, can[N << 1], f[N]; bitset<B> ck, can[N << 1], f[N];vector<pii> g[N];vector<int> cl[N << 1], cr[N << 1];void topo() { for (int i = 1; i <= n; i++) {54 行未改动 } clear(); } }
}int main() { ios::sync_with_stdio(0), cin.tie(0), cout.tie(0); cin >> t;3 行未改动