摘要:
https://www.luogu.com.cn/problem/P1407 第1题 朋友 查看测评数据信息 我们已知 n 对男女朋友,称第 i 对朋友的男方为 B(i),女方为 G(i)。若某男 B(i) 与某女 G(j) 曾经是同学(无论是大学,高中,亦或是幼儿园阶段,i <=j),则当某方与其 阅读全文
posted @ 2024-07-18 09:32
cn是大帅哥886
阅读(24)
评论(0)
推荐(0)
摘要:
讲义 Kosaraju #include <bits/stdc++.h> using namespace std; const int N=1e4+5; int n, m, u1, v1, vis[N], vis2[N], cnt=0; vector<int> a[N], ra[N]; stack< 阅读全文
posted @ 2024-07-18 08:10
cn是大帅哥886
阅读(74)
评论(0)
推荐(0)

浙公网安备 33010602011771号