HDOJ 5154 Harry and Magical Computer floyd判环

In reward of being yearly outstanding magic student, Harry gets a magical computer. When the computer begins to deal with a process, it will work until the ending of the processes. One day the computer got n processes to deal with. We number the processes from 1 to n. However there are some dependencies between some processes. When there exists a dependencies (a, b), it means process b must be finished before process a. By knowing all the m dependencies, Harry wants to know if the computer can finish all the n processes.

,有一种缘,放手后成为风景,有一颗心,坚持中方现真诚。

HDOJ 5154 Harry and Magical Computer floyd判环

相关文章:

你感兴趣的文章:

标签云: