洛谷 1113 杂务 拓扑排序(裸)
题目: https://www.luogu.org/problem/show?pid=1113#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<queue>using namespace std;const int MAXN=30001;int tot,fst[MAXN],nx