摘要: //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[ 阅读全文
posted @ 2025-05-01 18:25 九三青梧 阅读(5) 评论(0) 推荐(0)
摘要: //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 阅读全文
posted @ 2025-05-01 17:57 九三青梧 阅读(10) 评论(0) 推荐(0)
摘要: //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 阅读全文
posted @ 2025-05-01 17:40 九三青梧 阅读(8) 评论(0) 推荐(0)
摘要: //https://www.nowcoder.com/practice/88f7e156ca7d43a1a535f619cd3f495c #include <bits/stdc++.h> using namespace std; const int N=2e5+10,M=N; int n,m; in 阅读全文
posted @ 2025-05-01 17:29 九三青梧 阅读(4) 评论(0) 推荐(0)
摘要: //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 阅读全文
posted @ 2025-05-01 12:30 九三青梧 阅读(10) 评论(0) 推荐(0)