Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
一个优先级的问题。如果拓扑顺序不唯一,还要判断是否有环。可以直接测试下面的POJ测试数据第四组。15 60 B<M M<H N<G N<E I<D B<D A<J O<D D<J F<E I<L F<B I<C C<E I<K I<J A<E B<L G<J A<G N<H H<J K<N K<E F<J C<D K<M G<L F<H M<L A<K B<K E<L B<H F<D M<E M<G N<L O<J D<H O<B B<C A<L I<B F<L C<L A<C N<O A<B F<C K<J C<G O<E I<O D<E I<N F<N M<J H<L N<D ans: Inconsistency found after 48 relations. Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator