摘要: 给一个有向无环图求顺序 include using namespace std; define pb push_back const int N = 1010; typedef vector vi; vectorg[N]; vi ans; int in[N]; int topo(int n) { f 阅读全文
posted @ 2017-10-28 11:04 Linese 阅读(97) 评论(0) 推荐(0) 编辑