摘要:
//https://leetcode.cn/problems/Jf1JuT/ const int N=26,M=110; class Solution { private: int head[N],Next[M],to[M],cnt; int indegree[N]; int h,t; int q[ 阅读全文
摘要:
//https://www.luogu.com.cn/problem/U107394 #include <bits/stdc++.h> using namespace std; const int N=1e5+10,M=N; int n,m; int head[N],Next[M],to[M],cn 阅读全文
摘要:
//https://leetcode.cn/problems/course-schedule-ii/ const int N=2e3+10,M=N*(N-1); class Solution { private: int n,m; int head[N],Next[M],to[M],cnt; int 阅读全文
摘要:
//https://www.nowcoder.com/practice/88f7e156ca7d43a1a535f619cd3f495c #include <bits/stdc++.h> using namespace std; const int N=2e5+10,M=N; int n,m; in 阅读全文
摘要:
//https://www.luogu.com.cn/problem/P4926 #include <bits/stdc++.h> using namespace std; const int N=1e3+10,M=3*N; int vow[N][4],score[N][2]; int head[N 阅读全文
摘要:
//https://www.luogu.com.cn/problem/P1993 #include <bits/stdc++.h> using namespace std; const int N=5e3+100,M=N*2; int head[N],to[M],weight[M],cnt,Next 阅读全文
摘要:
//https://www.luogu.com.cn/problem/P5960 #include <bits/stdc++.h> using namespace std; const int N=5e3+10,M=2*N; int head[N],Next[M],to[M],weight[M],c 阅读全文
摘要:
//https://www.luogu.com.cn/problem/P5960 #include <bits/stdc++.h> using namespace std; const int N=5e3+10,M=2*N; int head[N],Next[M],to[M],weight[M],c 阅读全文