![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
拓扑排序
Cymbals
Public void effect()
展开
-
POJ 2367 Genealogical tree(Java)
The system of Martians’ blood relations is confusing enough. Actually, Martians bud when they want and where they want. They gather together in different groups, so that a Martian can have one parent ...原创 2018-03-07 22:51:38 · 326 阅读 · 0 评论 -
广外oj 旅游计划(拓扑排序模板题)
Description AC哥打算去很多个地方旅游,他已经列好了一份清单,一共有N个城市要去。但是AC哥还有个强迫症,就是对于某些城市,他要去安排在其它特定的一个甚至多个城市旅行完之后才去,于是他有制定了一份顺序计划。比如A城市如果要求排在B和C后面,那么他就必须先去B和C旅行,然后才能去A。 然而,聪明如AC哥,他竟然没注意到,他的计划表可能出现死循环,即诸如城市A安排在城市B后面,城市B安...原创 2018-06-07 20:15:19 · 452 阅读 · 0 评论